From 30dde28147a4592ce7b464bedb360515bd2b23a0 Mon Sep 17 00:00:00 2001 From: cgonzalesmo Date: Sat, 22 Oct 2022 12:34:21 -0500 Subject: [PATCH] Add Role Factory --- database/factories/RoleFactory.php | 2 +- database/seeders/DatabaseSeeder.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database/factories/RoleFactory.php b/database/factories/RoleFactory.php index 673a47d..32098ad 100644 --- a/database/factories/RoleFactory.php +++ b/database/factories/RoleFactory.php @@ -17,7 +17,7 @@ class RoleFactory extends Factory public function definition() { return [ - 'name' => $this->faker->name(), + 'name' => $this->faker->name(), ]; } } diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 373025e..c5dff83 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -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" ]);