pai-sklep/app/Console/Commands/fuckAround.php

47 lines
835 B
PHP
Raw Permalink Normal View History

2021-09-05 02:22:17 +02:00
<?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;
}
}