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