46 lines
835 B
PHP
46 lines
835 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Faker\Generator;
|
|
use Illuminate\Console\Command;
|
|
|
|
class fuckAround extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'command:fuckAround';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Fuck around and find out';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
private Generator $faker;
|
|
public function __construct(Generator $faker)
|
|
{
|
|
parent::__construct();
|
|
$this->faker = $faker;
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
echo $this->faker->productName."\n";
|
|
return 0;
|
|
}
|
|
}
|