mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Command;
|
|
use App\Models\Site;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* @extends Factory<\App\Models\Command>
|
|
*/
|
|
class CommandFactory extends Factory
|
|
{
|
|
protected $model = Command::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->words(3, true),
|
|
'command' => 'php artisan '.$this->faker->word,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
'site_id' => Site::factory(),
|
|
];
|
|
}
|
|
}
|