Created
August 29, 2014 18:31
-
-
Save mrailton/dadd6584ef5c0a3e7b26 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
<?php | |
/** | |
* Display the specified blog post. | |
*/ | |
public function show($slug) | |
{ | |
$post = Post::where('slug', $slug)->first(); | |
return View::make('blog.post', compact('post')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment