Edit role a Role

This commit is contained in:
cgonzalesmo 2022-10-22 12:25:03 -05:00
parent d8e92ce7a9
commit 7aae06a0da
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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;