ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 Current Path : /var/www/yapwebtv.com/Modules/User/Entities/ |
| Current File : /var/www/yapwebtv.com/Modules/User/Entities/Role.php |
<?php
namespace Modules\User\Entities;
use Modules\User\Repositories\Permission;
use Cartalyst\Sentinel\Roles\EloquentRole;
class Role extends EloquentRole
{
public function withUsers() {
return $this -> belongsToMany( static::$usersModel , 'role_users' , 'role_id' , 'user_id' ) -> withTimestamps() ;
}
public static function allRole(){
return Static::all();
}
public function scopeWithoutSuperadmin($query)
{
return $query->where('id', '!=', 1);
}
}