28 lines
698 B
PHP
28 lines
698 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Macro;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
class MacroFactory extends Factory
|
|
{
|
|
protected $model = Macro::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'uuid' => strtoupper(Str::uuid()->toString()),
|
|
'name' => $this->faker->words(3, true),
|
|
'color' => sprintf('#%06X', mt_rand(0, 0xFFFFFF)),
|
|
'trigger_on_startup' => false,
|
|
'image_type' => 0,
|
|
'action_count' => 0,
|
|
'hidden_at' => null,
|
|
'last_imported_at' => null,
|
|
'last_imported_filename' => null,
|
|
];
|
|
}
|
|
}
|