File: D:/HostingSpaces/Lacom/lacom.nl/app/KommaApp/Shop/ArtisanCommands/MigrationsAndSeeds/SeedShop.php
<?php
namespace App\KommaApp\Shop\ArtisanCommands\MigrationsAndSeeds;
use App\KommaApp\Shop\MigrationsAndSeedsController;
use App\KommaApp\Shop\MigrationsAndSeedsControllerInterface;
use Illuminate\Console\Command;
class SeedShop extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'shop:seed';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Run seeds that initialize the shop';
/**
* @var MigrationsAndSeedsControllerInterface $migrationsController
*/
protected $migrationsController;
/**
* Create a new command instance.
*
* @param MigrationsAndSeedsController $controller
*/
public function __construct(MigrationsAndSeedsController $controller)
{
parent::__construct();
$this->migrationsController = $controller;
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->migrationsController->seed();
}
}