for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Turahe\Master\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
class SeedCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'turahe:master:seed';
* The console command description.
protected $description = 'Seed database';
* Create a new command instance.
* @return void
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
Artisan::call('db:seed', ['--class' => 'Turahe\Master\Seeds\DatabaseSeeder', '--force' => true]);
$this->info('Seeded: Turahe\Master\Seeds\DatabaseSeeder');