2022-11-06 12:41:52 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-11-06 12:41:52 +01:00
|
|
|
namespace Database\Factories\Engelsystem\Models;
|
|
|
|
|
|
|
|
use Engelsystem\Models\Privilege;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class PrivilegeFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
2022-12-15 19:50:56 +01:00
|
|
|
protected $model = Privilege::class; // phpcs:ignore
|
2022-11-06 12:41:52 +01:00
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function definition(): array
|
2022-11-06 12:41:52 +01:00
|
|
|
{
|
|
|
|
return [
|
2022-11-26 13:36:47 +01:00
|
|
|
'name' => $this->faker->unique()->word(),
|
2022-11-06 12:41:52 +01:00
|
|
|
'description' => $this->faker->text(),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|