mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-05 04:05:07 +02:00
35 lines
828 B
PHP
35 lines
828 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\Admin;
|
|
|
|
use App\Constants\FeatureConstants;
|
|
use App\Models\Admin\Feature;
|
|
use Illuminate\Database\Eloquent\Factories\Attributes\UseModel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @method Feature createOne($attributes = [])
|
|
* @method Feature makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<Feature>
|
|
*/
|
|
#[UseModel(Feature::class)]
|
|
class FeatureFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
Feature::ATTRIBUTE_NAME => fake()->unique()->word(),
|
|
Feature::ATTRIBUTE_SCOPE => FeatureConstants::NULL_SCOPE,
|
|
Feature::ATTRIBUTE_VALUE => fake()->boolean(),
|
|
];
|
|
}
|
|
}
|