Files
exchange-2.0/app/Console/Commands/testingGround.php

49 lines
950 B
PHP

<?php
namespace App\Console\Commands;
use App\Classes\Modules\ServiceTypes\Services\FetchesServiceType;
use Illuminate\Console\Command;
class testingGround extends Command
{
public $fetchesServiceType;
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'test:script';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(FetchesServiceType $fetchesServiceType)
{
$this->fetchesServiceType = $fetchesServiceType;
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$test = $this->fetchesServiceType->execute(['id' => 5]);
dd($test->name);
}
}