From the course: Laravel Essential Training
Unlock the full course today
Join today to access over 25,100 courses taught by industry experts.
Handle routing - Laravel Tutorial
From the course: Laravel Essential Training
Handle routing
We are looking at a new Laravel application. Now it's time we look at the code, find out where this content is located and make some edits. This is Visual Studio Code within Codespaces, you can use an IDE of your choice if you're developing locally outside of Codespaces. This is your Laravel app code base. With these many files and folders, it's easy for a beginner to get overwhelmed at first. For the basic app that we are going to build in this course, we only need to access a few of these and we'll take it step by step. The very first thing we find out is where this content is being fetched from. In a core.php project, you need to have an index.php that is fetched when you type localhost or access the root URL. You can find that index.php within the public folder, right here, but you cannot immediately make sense of anything in this. Right? So where is the HTML content that is shown here, coming from? Laravel, just like any other frameworks, has routes, they are defined in a routes…
Contents
-
-
-
Serve the application2m 21s
-
(Locked)
Handle routing2m 45s
-
(Locked)
Creating a view3m 57s
-
(Locked)
Building layouts with Blade7m 32s
-
(Locked)
Working with controllers3m 5s
-
(Locked)
Challenge: Create a controller and a view, then add a route1m 27s
-
(Locked)
Solution: Create a controller and a view, then add a route1m 36s
-
-
-
-
-
-
-
-