/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy(User $user, Code $code) { $code->delete(); return Redirect::route('users.show', $user->id)->with('message', 'Code deleted.'); }