Created
January 5, 2015 15:42
-
-
Save bkozora/abc3fea2b5110486c259 to your computer and use it in GitHub Desktop.
Laravel Basic Controller
This file contains hidden or 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
class UserController extends BaseController { | |
/** | |
* Show the profile for the given user. | |
*/ | |
public function showProfile($id) | |
{ | |
$user = User::find($id); | |
return View::make('user.profile', array('user' => $user)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment