routes/routes.phpfile. Here, we may define any number of routes for our application. Or, in other words, when the user visits a particular URL, what logic should we trigger?
We'll get back to the PHP in just a few minutes, but let's take a brief pause to learn about Laravel Valet and how incredibly useful it is. What if you could create a new project with
laravel new project, and then immediately view it in the browser by visiting "project.dev"? How cool would that be?
Sorry Windows folks, this one is exclusively for Mac users. Don't worry: only this episode is Mac-specific.
/tasks/1, thanks to route model binding, we can make Laravel automatically fetch the
1, and then inject that instance into your controller action.
make:authArtisan command that will rapidly scaffold the necessary views and logic for registration, authentication, and password resets. Imagine if you could take this incredibly tedious work, and have it done for you automatically in seconds? How cool would that be!?
hasManyrelationships that we've learned so far don't quite fit the bill. In this episode, we'll review many-to-many relationships.
belongsToManyrelationship), but how might we go about allowing the user to filter all posts according to their requested tag name?
ThreadPublished, etc.), you only need to make an announcement to the rest of your application. Then, you may loosely register any number of handlers that will hook into this event, and respond as needed.