Add Role Factory

This commit is contained in:
cgonzalesmo 2022-10-22 12:34:21 -05:00
parent 7aae06a0da
commit 30dde28147
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class RoleFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->name(),
'name' => $this->faker->name(),
];
}
}

View File

@ -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"
]);