Hey Piotrek,
This is done by route bindings. You can find the file here: routes/bindings.php.
So basically we tell Laravel to return an instance of a user when it tries to pass the email_address to the controller. If it doesn't finds an instance it'll throw a 404.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.