- In the earlier lessons on routes,…we covered some of the more advanced techniques…such as passing variables and named routes…and establishing filters.…You can incorporate the same functionality…in Controllers, and I'll show you how in this lesson.…First, let's tackle variables, as that's…the most directly parallel.…You'll recall, we put the route variable…in a pair of curly braces, like the subject.…Let me scroll down to the route that we…brought that into play.…You can see it there on line 44.…Now the same basic syntax is used for Controllers.…

I'm going to comment out this version.…And then head on up.…And put in a new route.…Route::get('about/').…Now, we'll use the same syntax, as I said,…theSubject in curly braces, here.…And we're going to point to our 'AboutController',…so you can use that over again.…

But this time we'll invoke a different method.…And I'll call this one ShowSubject.…Semicolon, all right.…So let's go back to our AboutController I still have open…and I'm gonna add another public function.…As I said, we're gonna call this ShowSubject.…

Resume Transcript Auto-Scroll

Author

Released

12/16/2014

Join Joseph Lowery as he introduces Laravel, a standout PHP framework that helps developers build standout applications. After installing Laravel, Joseph shows how to handle routing requests, filter routes, and apply controllers. Then he covers outputting code and working with Laravel's advanced templating engine, Blade. Next, you'll find out how to integrate a functional database with Schema Builder, query data with Eloquent ORM, and keep your schema up to date with migrations. All of these tutorials culminate in the final chapters, where you'll learn how to build your first app and deploy it on the web. Joe issues hands-on practice challenges along the way to help you test your knowledge.

Need a quick dive into Laravel? Check out this short primer, Up and Running with Laravel.

Topics include:

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

4h

Duration

330,225

Views

Show MoreShow Less

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?

A: When you are
installing Laravel on a Windows machine, there is no need to change the
folder permissions.