From 7aae06a0dafef4d01cf361bca6d840a60259beb2 Mon Sep 17 00:00:00 2001 From: cgonzalesmo Date: Sat, 22 Oct 2022 12:25:03 -0500 Subject: [PATCH] Edit role a Role --- app/Models/User.php | 2 +- app/Models/role.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 4e4585f..b9e4c58 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -43,7 +43,7 @@ public function providers() public function roles() { - return $this->belongsToMany(role::class, 'role_user', 'id_user', 'id_rol'); + return $this->belongsToMany(Role::class, 'role_user', 'id_user', 'id_rol'); } public function isAdmin() diff --git a/app/Models/role.php b/app/Models/role.php index b66e059..8801076 100644 --- a/app/Models/role.php +++ b/app/Models/role.php @@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -class role extends Model +class Role extends Model { use HasFactory;