Last active
February 6, 2017 17:12
-
-
Save joetannenbaum/d75ca5a59301ab28e68a3ce7abb46c7f to your computer and use it in GitHub Desktop.
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
<?php | |
// GET /users/3kTMd | |
Route::get('/users/{id}', function($id) { | |
// $id is now an int | |
return User::find($id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment