Edit role a Role
This commit is contained in:
parent
d8e92ce7a9
commit
7aae06a0da
@ -43,7 +43,7 @@ public function providers()
|
|||||||
|
|
||||||
public function roles()
|
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()
|
public function isAdmin()
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class role extends Model
|
class Role extends Model
|
||||||
{
|
{
|
||||||
use HasFactory;
|
use HasFactory;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user