for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Jawaraegov\Workflows\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
/**
* The WorkflowCommand class.
*
* @package Jawaraegov\Workflows
* @author Jawaraegov <[email protected]>
*/
class SeedCommand extends Command
{
* The name and signature of the console command.
* @var string
protected $signature = 'jawaraegov:workflow:seed';
* The console command description.
protected $description = 'Seed Database';
* Create a new command instance.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
Artisan::call('db:seed', ['--class' => 'Jawaraegov\Workflows\database\seeds\DatabaseSeeder']);
$this->info('Seeded: Jawaraegov\Workflows\database\seeds\DatabaseSeeder');
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.