Laravel From Scratch | 4+ Hour Course

preview_player
Показать описание
Learn the Laravel PHP framework from scratch by building a job listings application with Laravel and MySQL.

⭐ Sponsor:

💻 Github Repo:

💻 Gists:
Laravel Valet Setup:
Laravel Xampp Setup:
MySQL Cheat Sheet:

💻 My Courses & More

👇 PHP OOP MVC Udemy Course:

💖 Show Support

👇 Follow Me On Social Media:

Timestamps:
0:00 - Intro
1:30 - Linode Sponsor
2:13 - Project Demo
6:21 - Setting Up Laravel
13:50 - Routing & Responses
19:28 - Wildcard Endpoints
20:16 - Route Constraints
21:06 - Die Dump Helpers
22:30 - Request & Query Params
26:26 - API Routes
28:26 - View Basics & Passing Data
32:36 - Blade Templates & Basic Directives
36:42 - Creating a Basic Model
43:46 - Database Setup & Config
46:03 - Create Database & User
48:44 - Creating Database Migrations
52:44 - Running Migrations
54:06 - Database Seeding
58:29 - Create an Eloquent Model
1:02:49 - Creating a Factory
1:07:18 - Creating a Layout & Sections
1:09:54 - Adding the Theme HTML
1:19:02 - Template Partials
1:22:54 - Single Listing Formatting
1:26:00 - Route Model Binding
1:28:18 - Blade Components
1:32:53 - Component Attributes
1:35:20 - Tags Component
1:40:38 - Controllers
1:44:09 - Resource Method Naming
1:46:34 - Using a Layout Component
1:49:08 - Tag Filter
1:57:31 - Search Filter
2:01:29 - Clockwork Package
2:04:05 - Create Listing Form
2:10:39 - Validation & Store Listing
2:23:30 - Mass Assignment Rule
2:27:20 - Flash Messages
2:36:33 - Keep Old Data In Form
2:38:46 - Pagination
2:45:20 - File Upload
2:57:24 - Edit Listing
3:09:16 - Delete Listing
3:13:32 - User Registration
3:30:00 - Auth Links
3:32:46 - User Logout
3:37:20 - User Login
3:47:02 - Auth & Guest Middleware
3:51:30 - Relationships
3:59:05 - Tinker Tinkering
4:01:35 - Add Ownership to Listings
4:05:31 - Manage Listings Page
4:14:22 - User Authorization
Рекомендации по теме
Комментарии
Автор

It took me a few weeks to get this done and recorded. Hope you enjoy!

TraversyMedia
Автор

Just got job as Junior Laravel developer and your Laravel series was my first entry to learning Laravel.

pratikshrestha
Автор

Hi, 6 years ago, you uploaded a crash course for laravel which helped me a lot on my uni projects.. I was a student at that time. Now I am a senior software engineer and living a comfortable life still using laravel on my day job.. Just wanted to say thank you.. I will be forever grateful to you and this channel.

syouske
Автор

I swear Laravel and generally PHP never die because of people like you. Keep it up man. You are inspiration of many developers like myself!

iosebmatiashvili
Автор

I just wanted to let you know that this course made me land my internship, after passing the interview. I'm currently using Laravel to build a small system for my local government, it's a great project for my future experience, thank you SO MUCH. Thanks to this I will get my engineering degree without breaking my head. God bless you Brad. ❤

axelramirezludewig
Автор

02:54:00 If you don't see the logo path appearing in your database and you're using the $fillable array inside your Listing model, make sure you add 'logo' to the $fillable array inside your Listing model. This ensures the logo can be uploaded to the database together with the other form data.

MultiTrickster
Автор

Hey Brad,
Great to see you spend more time on PHP/Laravel.
I think this video will be one of the most popular ones on Laravel.

TheCodeholic
Автор

To anyone doing this tutorial on Laravel 10, in the EDIT form if you have any issues I found I had to assign a name to my Route::Update controller and then assign this to my form action for the form to work correctly. Originally @method('PUT') didn't fix it and I kept getting POST errors until I did this:
Route::put('/listings/{listing}', [ListingController::class,
<form method="POST" action="{{ route('listing.update', ["listing" => $listing]) }}"

@method('PUT')

Otherwise this entire tutorial has worked on Laravel 10! Thank you bradddd!

yodaru
Автор

Hooray! Congratulations to me. This is actually the first 2+ hour crash course I've ever completed, while coding along. It took me 4 days, but I'm done and I have the project in my local PC without ever downloading it from the GitHub repo.😂😂 I'd like to thank Brad for the way he holds your hand during a teaching session. You'd swear he's here with you during the tutorial, when it's actually prerecorded. You guys, in the comments are also a great community. Brad's channel is actually one that I wish had more than 10 million subscribers, the ways he teaches is just too good for people not to recognize his talent! God bless you Brad!

kwanele_dev
Автор

If anyone is thinking why at 1:34:38 didn't work for you, then you can consider adding a "!" with the "p-24", for example: "<x-card class="!p-10">". And it will work :3 because as of tailwind 3+, you can override the existing class selectors by adding at the beginning, the important operator.

mahiraseef
Автор

For anyone who may wonder: around 01:57:20 The naming of the 'scopeFilter' method and calling it using 'filter' matter. The 'scope' prefix is meaningful to Laravel and the 'Filter' part can be anything, as long as you use the same name in your Controller when calling the method. In other words, if you name the method scopeTry, then call it using ...latest()->try(request(...

Another_Look
Автор

I have been a javascript developer, but I watched a video on laravel. Loved the simplicity of the setup and this course just filled in all the blanks. Awesome job Brad!

DuaneASmit
Автор

Around 2:53:xx, I found that the name of the image I uploaded (as amended by Laravel) was NOT in my logo field of the database record and realized immediately why: I hadn't added the logo column to my fillable list in Listing.php. As soon as I added 'logo' to the fillable list and then added a new gig via the form, the (Laravel version of the) file name appeared in my database row. Brad didn't have a problem because he used the "unguard" option in the model but I was still using fillable so had to adjust my fillable list. This may make a good argument for always using "unguard" but I'm sure there are cases where you might be glad to have used fillable instead of 'unguard". Anyway, I just mentioned this in case anyone else is puzzled about why the file name doesn't appear in the database.

hughmungus
Автор

I find it cute that you keep the little unexpected behaviors with your code in there! It makes it all a little relatable. Just love all your video's. Thank you so much!

scriptster
Автор

Brad, your videos got me into my first dev job 3 years ago and have been invaluable tools since. Only 1h45 into this one and just wanted to again say thanks for all you do. You are an absolute legend!

drjonbear
Автор

Brad. What could we really do without you. Thank you for the time and massive efforts you put in. Really appreciate you .
Truly grateful.

skellybrownston
Автор

We thank you brady form the bottom of our heart, you help me from novice to sophisticated PHP developer

adamchengula
Автор

Don't mind me, just leaving a timestamp for tomorrow. (Thanks a ton so far, this really really really helped me understand laravel better so far) 1:21:24

ElmoPlayss
Автор

I've always wanted to dive in Laravel and I believe this is the time now. Thank you so much Brad Traversy for always inspiring us

QuintusGandi
Автор

Hello, sir. I just wanted to say thank you for this. I've been wanting to build a custom blog engine with a forum for a long time. I've tried a lot of CMS tools (especially WordPress quite a few times) and always thought they were too heavy and integrating forums with a single database can be difficult. I wanted to build something from the ground up so I knew exactly how it works and how to expand its feature set.

I've looked into Laravel before and haven't found a good resource to get me started. This was perfect. I like Laracasts but I don't have the budget for another subscription right now, so the fact that you're doing this for free is astounding.

So, TLDR, thank you for making this resource available for everyone and at no cost. I'm stoked to take this even further. Thank you so much!

robbitjuice
visit shbcf.ru