Join Joseph Lowery for an in-depth discussion in this video Filtering routes, part of Laravel 4 Essential Training.
Filters, whether for a drip coffee or web access,…are designed to let only what is desired through.…So it is with Laravel.…But Laravel takes it a step further by not only allowing you…to control access to routes with filters,…but also and perhaps more importantly…enabling actions based on a filter.…Filters can be applied before,…or after a route is executed, or both.…Laravel comes with a number of default filters,…and you can find these in the app folder…right alongside routes.…
It's filters.php, so if you open that up,…and let me just expose the comment there…for a little bit.…It gives you a little bit more information there.…Now the first couple of filters…that start on Line 14 and go through Line 23…are general filters that apply to the overall application.…With these filters, you can execute any desired logic,…and you can do that before the request is executed…like if you want to handle some setup chores,…or after, like for logging entries.…
Of the remaining default filters,…the first three bolster Laravel's…
Need a quick dive into Laravel? Check out this short primer, Up and Running with Laravel.
- Installing Laravel and Composer
- Routing requests
- Filtering routes
- Incorporating advanced controllers
- Creating a basic Blade template
- Developing a layout with child pages and forms
- Integrating a database
- Creating tables via migrations
- Outputting data
- Building a Laravel app
- Authenticating users
- Deploying Laravel code
Skill Level Intermediate
Q: In the "Installing Laravel" video, the author provides instructions for changing permissions on the web server directory, as well as setting up a new project and cd-ing to the new app directory, using commands on a Mac. What commands do I type in Windows?
1. Introduction to Laravel
2. Fundamental Laravel Concepts
3. Outputting Laravel Code
4. Integrating Databases
5. Querying Data with Eloquent ORM
6. Building a Laravel App
7. Deploying Your Laravel Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.