Files
animethemes-server/database/factories/Wiki/GroupFactory.php
T

39 lines
802 B
PHP

<?php
declare(strict_types=1);
namespace Database\Factories\Wiki;
use App\Models\Wiki\Group;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @method Group createOne($attributes = [])
* @method Group makeOne($attributes = [])
*
* @extends Factory<Group>
*/
class GroupFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var class-string<Group>
*/
protected $model = Group::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
Group::ATTRIBUTE_NAME => fake()->words(3, true),
Group::ATTRIBUTE_SLUG => Str::slug(fake()->text(191), '_'),
];
}
}