HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/meuwis/lmbm.be/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();
    }
}