Created
June 12, 2014 13:25
-
-
Save andrewhl/dc4f02968a46bdf7970b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Display the specified resource. | |
* GET /food_items/{id} | |
* | |
* @param int $id | |
* @return Response | |
*/ | |
public function show($id) | |
{ | |
if ($food_item = $this->foodItem->find($id)) | |
{ | |
return View::make('food_items.show', compact('food_item')); | |
} else | |
{ | |
Flash::error('Food Item not found'); | |
Redirect::to('food_items.index'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment