/** * @param $id * @param DeleteRoleRequest $request * @return mixed */ public function destroy($id, DeleteRoleRequest $request) { $this->roles->destroy($id); return redirect()->route('admin.access.roles.index')->withFlashSuccess(trans("alerts.roles.deleted")); }
/** * @param $id * @return mixed */ public function destroy($id) { $this->roles->destroy($id); return redirect()->route('admin.access.roles.index')->withFlashSuccess('The role was successfully deleted.'); }