예제 #1
0
 public function deleteFishAction()
 {
     $id = Request::input('id');
     Fish::destroy($id);
     return redirect('/admin/contents/fishes');
 }
예제 #2
0
 public function showFishInfoAction($id)
 {
     $fish = Fish::where('id', '=', $id)->first();
     return view('base.fish_info', ['fish' => $fish]);
 }