From the course: Laravel Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Adding styles to the project - Laravel Tutorial
From the course: Laravel Essential Training
Adding styles to the project
It's time to change this landing page. While doing so, we learn how to add styles to our views. So let's remove all of this from welcome view. Go to welcome.blade.php. We don't need any of these styles, so let's remove that. And if you scroll down and carefully look here, this is the block of code that's adding our login and register links. So let's retain this and remove everything else. Scroll down and remove all of this. And let me also remove the nav tags right here. Or we can leave the nav tags. Let me just format this. Let me also remove all the dark mode classes. We'll not be using dark mode here. All right, now go to the browser and refresh. Of course, we've lost all the content, but also lost the styles because we removed the style tag. But if you go to the login page, all the styles are still here. So let's see where the login page is getting all its styles from. Go to login.blade.php, and you can notice that this is using the guest layout. So go to layouts, guest.blade.php.…
Contents
-
-
-
-
-
Understand the project requirements3m 21s
-
(Locked)
Add authentication with Laravel Breeze4m 37s
-
(Locked)
Adding styles to the project7m 12s
-
(Locked)
Create the first model, migration, controller, and routes3m 17s
-
(Locked)
Register resource routes4m 54s
-
(Locked)
Challenge: Create a new resource1m
-
(Locked)
Solution: Create a new resource2m 14s
-
-
-
-
-
-