/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Role::destroy($id); return Redirect::route('roles.index'); }
public function destroy($id) { Role::destroy($id); DB::table('permission_role')->where('role_id', $id)->delete(); return View::make('admin.roles.index')->with('message', 'berhasil menghapus role'); }
/** * Remove the specified role from storage. * * @param int $id * @return Response */ public function destroy($id) { Role::destroy($id); Session::flash('message', 'Role deleted'); return Redirect::route('roles.index'); }
/** * Remove the specified resource from storage. * DELETE /roles/{id} * * @param int $id * @return Response */ public function destroy($id) { \Role::destroy($id); return \Redirect::route('admin.roles.index'); }