Files
vito/database/factories/ScriptFactory.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

26 lines
505 B
PHP

<?php
namespace Database\Factories;
use App\Models\Script;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
/**
* @extends Factory<Script>
*/
class ScriptFactory extends Factory
{
protected $model = Script::class;
public function definition(): array
{
return [
'name' => $this->faker->name(),
'content' => 'ls -la',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}