You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
337 B
18 lines
337 B
<?php
|
|
|
|
namespace App\Entities\Users;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Role extends Model
|
|
{
|
|
protected $table = 'roles_permissions';
|
|
|
|
protected $fillable = ['type','name','label'];
|
|
public $timestamps = false;
|
|
|
|
public function users()
|
|
{
|
|
return $this->belongsToMany(User::class, 'role_user');
|
|
}
|
|
}
|