for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CleaniqueCoders\Profile\Console\Commands;
use Illuminate\Console\Command;
class SeedProfileCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'profile:seed';
* The console command description.
protected $description = 'Seed Profile Data';
* Create a new command instance.
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
foreach (config('profile.seeders') as $seeder) {
if (! class_exists($seeder)) {
$this->comment($seeder.' does not exists');
continue;
$this->call('db:seed', ['--class' => $seeder]);