Skip to content

Instantly share code, notes, and snippets.

@winni4eva
Created January 13, 2019 17:00
Show Gist options
  • Save winni4eva/8e9cd0a2fb5bb58c54b56ced9755bf07 to your computer and use it in GitHub Desktop.
Save winni4eva/8e9cd0a2fb5bb58c54b56ced9755bf07 to your computer and use it in GitHub Desktop.
Implicit Route Model Binding
<?php
$router->get('/users/{user}', function(App\User $user){
dd($user);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment