mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
23 lines
478 B
PHP
23 lines
478 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\Role;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
use Illuminate\Support\Carbon;
|
||
|
|
|
||
|
|
class RoleFactory extends Factory
|
||
|
|
{
|
||
|
|
protected $model = Role::class;
|
||
|
|
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'name' => $this->faker->name(),
|
||
|
|
'guard_name' => $this->faker->name(),
|
||
|
|
'created_at' => Carbon::now(),
|
||
|
|
'updated_at' => Carbon::now(),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|