public function removerole($id) { $role = Role::find($id); $role->delete(); return redirect()->back()->with('message', 'Role pengguna berhasil dihapus!'); }
public function action(Request $request) { $role = Role::find($request->role_id); $role->permissions = $request->arr_id; $role->save(); }