/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $card = MsgSeed::findOrFail($id); $card->delete(); return redirect()->route('card.message.index')->with('message', '删除成功!'); }
/** * Show the form for creating a new resource. * 短信记录 message * @return Response */ public function message() { $messages = MsgSeed::all(); $data['messages'] = $messages; return view('card.record.message', $data); }