public function postDeleteRole(Request $request) { role::destroy(Request::get('delete')); User::where('role_id', '=', Request::get('delete'))->update(['role_id' => 0]); //return Redirect::to('admin/permission')->withErrors(['error' => 'Delete role success !']); return "Delete role success!"; }