Support the ongoing development of →
posted 6 years ago
Last updated 2 years ago.
moderator Solution

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.

Last updated 6 years ago.

Sign in to participate in this thread!


Your banner here too?

Peter mtr Joined 20 Oct 2017


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.