Add Role Factory
This commit is contained in:
parent
7aae06a0da
commit
30dde28147
@ -17,7 +17,7 @@ class RoleFactory extends Factory
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name(),
|
||||
'name' => $this->faker->name(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -16,10 +16,10 @@ class DatabaseSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
//roles
|
||||
\App\Models\role::factory()->create([
|
||||
\App\Models\Role::factory()->create([
|
||||
"name"=>"Admin"
|
||||
]);
|
||||
\App\Models\role::factory()->create([
|
||||
\App\Models\Role::factory()->create([
|
||||
"name"=>"User"
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user