/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $user = User::findOrFail($id); $this->authorize('destroy', $user); if ($user->delete()) { return redirect(action('UsersController@index'))->with('success', trans('messages.deleted_success')); } return redirect(action('UsersController@edit', $user->id))->with('error', trans('messages.deleted_error')); }