public function getAll(array $attributes = array())
 {
     if (empty($attributes)) {
         $roles = $this->role->all();
     } else {
         $roles = $this->role->get($attributes);
     }
     return $roles;
 }
Beispiel #2
0
 public function index(Role $RoleModel)
 {
     $roles = $RoleModel->get();
     return view('users::roles.index', compact('roles'));
 }