It took me a few weeks to get this done and recorded. Hope you enjoy! If you are new to PHP, I have a recent 3 hour course on UA-cam that you can check out first if needed - ua-cam.com/video/BUCiSSyIGGU/v-deo.html I also have an API project with Sanctum Authentication - ua-cam.com/video/MT-GJQIY3EU/v-deo.html
Hi Brad! I make tutorials as well and it takes me days just to make a 10min video. I'm wondering how much time you spend per day for a long tutorial like this one? Do you have any tips to speed it up?
@@mohamadrfawaz4859 i practiced by creating my own small projects to show on my portfolio. My github was updated with these projects which helped me get the job.
@@pratikshrestha1026 ah I see did you have any experience with php before learning laravel? like any profound experience? because my only experience is the 4 hour bootcamp and its giving me anxiety lol
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. ❤
@@eliodbomboy6063 thanks my boi, the project is done! my app does everything with Laravel, sends emails, generates pdfs, admin panel/user panel, a lot, all from this video lol
Some may be mad at me for that lol. I don't care what anyone says, PHP, Laravel and even Wordpress are very useful in web development, especially the area that I come from which is small business, freelance, building products, etc
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(...
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.
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: "". 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.
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, 'update'])->name('listing.update'); @method('PUT') Otherwise this entire tutorial has worked on Laravel 10! Thank you bradddd!
@@jaywaldluna3158 Thanks a lot buddy. I will do my best to create high quality content. My next Laravel project will probably be Ecommerce website. I have already started working on that.
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!
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!
Since 2015 I have never looked back this channel has impacted lots of skills to me may GOD Bless you PhD, Engineer, Professor all time winner Mr Brad 🙏🙏🙏 👏👏👏👏👏👏👏👏
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!
Just finished your 13 video Laravel course and it was so helpful.Thanks brad you make us believe that it is possible.looking forward to this.. respect to you all the way from Zimbabwe
Thankyou, Brad - great course. For anybody struggling with a "Target class [YourController] does not exist" around 1:44, even when the controller is def imported (with "use"); the solution is just to prefix your controller's name to fully qualify where it lives. For example : // All products Route::get('/products', [App\Http\Controllers\ProductController::class, 'index']); // Single product Route::get('products/{product}', [App\Http\Controllers\ProductController::class, 'show']); Here I'm using a controller called ProductController whereas Brad is using ListingController or something like that in the vid. So previously, I just specified "ProductController" & I got the "does not exist" error; prefixing with "App\Http\Controllers\" fixed the problem. Honestly dunno why it's required, but hey. Hope this helps somebody. 😄
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!
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.
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.
I learned more in this tutorial than all the others combined. This was a truly awesome tutorial. I have been programming in PHP for quite a few years I just have never really had the time to learn Laravel. This was truly the best course.
Hi Brad, amazing tutorial. It might be worth mentioning that you need to add the 'logo' to the protected $fillable element to make the create gig button commit the path to the sql database. Scratched my head on this bit for a good 30 minutes wondering what I had done wrong! Thanks for taking the time to make this introduction video!
This was great! PHP frameworks have always been a little intimidating for me, but you do a really great job explaining all the details. I had a project where I was trying to stick to 'vanilla' OOP PHP, but at some point I realized I was spending a huge amount of time just building out my own (crappy) framework. I think after this I'm ready to try Laravel! You're an awesome teacher. Thanks so much for this tutorial.
By building your own crappy framework, you get yourself the knowledge and experience to get Laravel. Don't underestimate the hard way learning: it's always pay in the end.
Had never touched PHP before this video and now I have a whole project. I love this video because of the clear instructions and because it just works. Thank you!!!
Under Component Attributes at the 1:32:53 mark, it discusses using the 'attributes->merge' to add classes to the component. I couldn't get it to work. After a little bit of research, I think it will add new classes, but it won't override a class that's already defined within the component. I'm posting this to either help others or for someone to tell me I'm wrong so I can figure out what in the heck I was doing differently than the lesson.
A long course, but really beautiful, finally a person who calmly explains there is no course like this in Italian and thank you for knowing English really well, congratulations.
Thank you Brad. I have been out of the coding life for a good while, and was using Zend Framework before my work life changed in a different direction. I have been trying to get going with Laravel over and over again, starting with the packages like Fortify and following various youtube tutorials. Your course here really had me getting a much better understanding of Laravel. At the end of the course i tried pausing your video, coding what i thought would be your next move, and got really excited when i got it right - Thanks a ton!
I have to thank you. I watched and studied this course early this year and I'm now working part time as assistant of a senior developer while completing my CS degree. We use Laravel a lot.
Just one small criticism: the point of using migrations is having a documented history of how your database evolved over time during development, so you can easily go back and forth from/to different points. So if you need to change something in the database you don't keep editing the same migration, you create new ones.
Thank you Brad for creating this tutorial. When you create the next laravel video (the deployment), if possible, could you also include how to deploy to shrared hosting, (no SSH access). I'm sure few of us are still using shared hosting. Thank you again for teaching this🙏
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
I think I speak for all your viewers when I say thank you for al the time you put into making these videos. We are extremely grateful. And I'd rather watch long videos that goes deep into the subject than short videos that leaves me with hundreds of questions. And it's way easy to navigate thanks to you splitting it into chapter. Thank you, Brad :)
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!
This is one of the best from-scratch Laravel training videos That have viewed. I literally sat through the whole 4 hours and did every last thing with Traversy. I can not say how much I have learned and That I'm already applying a lot of what I learned in my own project. Lot of my blockers is now resolved and I have a lot of new features because of this. Thank you so much for this video
What an absolutely great course! Thank you. I learned Laravel several months ago, stepped away from programming for a while, and became very rusty. This course had EVERYTHING I needed to get back up to speed.
Just 2 Weeks ago i got my first developer job. I was never interested in Laravel or PHP in general. But since we use Laravel with Vue + Vuetify, i got into it the last 2 weeks and i have to say: I love Laravel. Its just so nice to have everything you need in a good structure. Cant wait to build my first new project with it.
This is one of the best courses I have ever watched in my life ❤ And I'm jaw-dropped with Laravel, it is sooo easy and crafted compared to many other frameworks from different languages, incredible!
I have just learned from this to use Laravel and have successfully developed a custom application for registering to attend to a conference. This is one of the best language tutorials I have seen in the last 15+ years. Thanks for that!
This literally could not have come at a better time! We're just starting to use Laravel at work and I just finished your PHP crash course. Thanks Brad!
You know one thing I do every morning is checking if Brad has uploaded any new videos. And here I am. Watching this great episode of PHP. I love you, Brad, All I know now is because of your efforts. God bless you
Thank you Brad for this. I was literally just going through your PHP course when you popped this one up. I hope you and your family are well and welcome back. :)
I just landed a Jr Laravel Dev remote job thanks mainly to this video. First I landed the internship and after doing a big ass Laravel project that landed me my first job today. My background is very obscure so I can never thank you enough for the knowledge gained here. Not only the amount of money but having a job is life changing for me:)
Thank you so much Brad, for making this Laravel Course Just wanna add a little bit of info, for windows user instead of XAMPP, you can also use Laragon for local dev server It is portable and easier to use rather than XAMPP You can also easily switch PHP version with just one click
Hey Brad, I'd like to offer a friendly suggestion. I got a bit hung up on the route model binding section because I misread a lowercase 'l' as an uppercase 'L' in your code. Using a slightly different font in VS Code would make it easier to distinguish between the 'l' and the 'L'. I'm using: Consolas, 'Courier New', monospace and it's a bit easier to read but there may be even better choices.
Wow, just completed this crash course and I have to say, you're absolutely amazing! The way you explain things is fantastic, and I really appreciate that you make it so accessible for beginners like me. Thank you so much!
at roughly 24:30 you mention extensions for php. it's noteworthy that the "go to definition" (which you explained earlier to see the origin of the route class) in vsc does NOT work without php intelephense installed.
i like how you run through all of the codes and revisit them everytime they get referenced from another code, something that i would always ask. thank you so much for this!
Great tutorial. Really extensive. My only gripe is that intelephesense doesn't like auth()->user()->listings()->get() from ListingController::manage (although it runs just fine). If possible, I'd like to get a lead on a good source for: - Unit testing in Laravel - tailwind/bootstrap/whatever: Every time you string together a bunch of classes and get a perfect layout it looks like magic to me. Thanks.
I am struggling with the Auth() stuff. I actually started reading the comments hoping someone had the solution. I was struggling with the assigning the user to the Gig. I finally found this solution $formFields['user_id'] = Auth::check() ? Auth::id() : true; But when I added your fix to this I still get the listings showing with the red line below it.@@emmanueluwadone
I got undefined method listings @@emmanueluwadone public function manage(){ //return view('listings.manage', ['listings'=>auth()->user()->listings()->get()]); return view('listings.manage', ['listings'=>Auth::user()->listings()->get()]); // OR auth()->user()->listings()->get() ????? both are not working }
around 3:06:00 instead of deleting the Rule::unique('listings', 'company'), you can add rule like this: ['required', Rule::unique('listings', 'company')->ignore($listing->id)]], so that it will ignore the current listing. because without doing that there will be unwanted behavior if the company name collides with the other ones.
Brad huge thanks for this crash course man! I honestly love that the entire video is unedited to show the problems you run into and how you solve them. I really learnt a ton from this and can't wait to take these new found skills and build something awesome!💪🏻😁
Might help someone, when you add the logo and its path is not getting added to the db, you must add the 'logo' to the fillable array in the listing model. like this: protected $fillable = ['title', 'company', 'game', 'website', 'email', 'age', 'tags', 'descreption', 'logo']; I have different names for the fields so don't mind that.
I'm watching this unique video tutorial on a work Windows PC with restricted privileges and very limited facilities and I'm rebuilding the application on my personal laptop(Linux) that is without any internet connection. Actually I'm working on a merchant vessel that is in the middle of the Ocean, as a rule, and I'm very glad to see extraordinary people like Brad , that give us ( to beginners like me ) the opportunity to proper learning Laravel (in this specific case) . Thank You very much! For novices like me, I would say that I prefer to use the .env file instead of touching the config hard coded stuff. For Laravel 10 the process of rebuilding the application is going smoothly, so far. Thank You again Brad, and God to Bless You!
Hello, your tutorial is very helpful , however I have encountered an issue with the manage listings part where I get an undefined method error for listings() in the auth()->user()->listings()->get() and it confuses me since you don't seem to have any errors with that. Any suggestions on how I can fix that error? your help is much appreciated, thank you!
I think you just need to move the Manage listing route higher on the web.php page (so the router does not try to match on a wildcard listing named "manage").
I swear every tutorial I search you’re there! Absolute god tier content. I started off 3 years ago learning coding watching your vids. 3 years later as a experienced dev, still watching your tutorials. Cheers 🎉
In a project like this, would you develop the front end HTML files (like you have in _laragigs_theme) first before building out the back-end? If so, would it be fully styled or more of a boilerplate thing?
Just completed the app. Brad, you do a great job of explaining Laravel Framework, request response cycle, php and more all in one easy to follow tutorial. Awesome production!
Thank you for your work Brad. I'm developing a quite complex app in Laravel and now are some months that I'm into this project at work. I was reviewing some content from this scratch course and now I can follow everything quite easy and it's so helpful, there was a lot of helpers that I forgot that are so useful. Thank you for everything and for spreading the joy of coding and of knowledge 🙂❤
Thank you for this course! I started on a paid Laravel course, and after the course instructing the downloading of an incredible amount of helpers, addons, apps and tools, reached a point that was not able to continue due to some, still unknown, problem I could not resolve. Even after watching sections over and over and downloading the repository for that section. This course was straight forward, easy to follow and best of all; easy on my development system configuration. Keep up the great content. Thank you again!!!
Thanks a lot for this, you're making me learn A LOT! I am currently working with Laravel for the first time in my life and I was totally lost. I'm following this tutorial step by step and now I feel much more confident at work. Thank you again!
Great job on this. I learned a lot. One thing I would add. Reference the $fillable array each time you add a new field. For example, when adding "user_id'. It kept throwing an error until I realized I had not added this field to the $fillable array.
Some people, like Brad, deserves Nobel prize for their efforts and good will to teach others new skills and helping them to become better in what they are doing. Tnx Brad.
Hi Brad, I've watched so many of your tutorials, and you're fantastic at working efficiently on a Mac! I'm in the process of switching from Windows to Mac, but I'm finding the keyboard shortcuts a bit challenging. It might sound a bit odd, but I'd love to see how you physically use your keyboard while working on a Mac. Specifically, how you position your fingers and how you handle the Command key (which is like Control on Windows, but placed differently on the Mac). I really appreciate your work and all the value you bring. Thanks in advance!
You explained just the right things so that I understand both the why and the how, plus the little quirks that help with the inevitable trouble-shooting that's required at times. The Laravel videos on a certain paid website are more like typing classes.
I can't believe this! I jumped out of my seat and screamed with joy when I saw this video pop up in my feed. Not sure if Thank You is enough Sir Traversy for all that you do for us. Many Many Thanks and Stay Blessed!
A few years ago I learned laravel from your crash course and I've been recommending the tutorial to other people, today I was finding the link to share the tutorial with another friend and I found this, Thank you for the refresh.
One thing to point out here if not mentioned already... When deleting a listing, the image file itself still remains in the storage/app/public/images folder. I managed to solve this by adding an 'if' statement to the destroy method which checks for the existence of the image file path / not null. If true then the file can be deleted using Storage::delete('public/' . $imageFilePath). Have also added a cool fade-out effect for the flash messages and set the URL slugs to match the listing title (instead of id). Had to modify some of the controller methods but it's all working. Thanks Brad - love the channel!
Amazing course, thank you Traversy Media! I'm being transparent about this course though. I'm new to the backend world and just know the basics of javascript and how the DOM in javascript works as a scope of my knowledge with a coding language. However, I got to the database section and felt super overwhelmed trying to understand where/what connects to what and what everything is doing through this laravel application. So, I started the course completely over. So, the second time around, I literally went through each section Trasversy Media covers and once he covered it, I would pause the video and write down the code, name, and a short meaning of what he covered, and that helped me tremendously! I HIGHLY recommend that for any newbie developer that's coming into the tech space or learning PHP/laravel for the first time. The reason why I suggest it is because it doubles your learning by soaking it in from doing the course along with Trasversy Media but also writing it down gives you clarity, explaining what that snippet of code is doing as well as the name of it. And lastly, redoing what you just got taught from your brain and no notes will test you on the syntax as well as you developing the skill of talking things out loud to solve the problem. PS: I hope this message reaches future developers trying to learn Laravel! I know you can do it, just remind yourself. If you can build laravel applications that immediately give you the permission to ask for at least $60k at any company, and for most of us that is life-changing and from there it only increases even higher for you. So, just endure this short-term struggle now, and afterward, you'll reap the rewards of your hard work and success!🙌😃
You are a great teacher! This is my first time with Laravel and I must say I tried other tutorials and I didn't like them but when I was divinely led to your channel, it has been smooth running for me. I'll recommend you any day. God bless you.
This course was great for understanding how Laravel works. Very complicated features have been simplified. A very fun tutorial, as soon as a question came up the answer was immediately provided. Thanks!
Not to be that person, but this could not have come at a better time. I just got into learning Laravel this past week/weekend and was still struggling to find decent content that was recent. I much prefer your teaching style as it is easy to follow and now I have been gifted with a highly in-depth, quality video from the man himself. Thank you.
It took me a few weeks to get this done and recorded. Hope you enjoy!
If you are new to PHP, I have a recent 3 hour course on UA-cam that you can check out first if needed - ua-cam.com/video/BUCiSSyIGGU/v-deo.html
I also have an API project with Sanctum Authentication - ua-cam.com/video/MT-GJQIY3EU/v-deo.html
Thanks Brad this will save me a lot of time! I decided to start stdying Laravel 9 just this morning and there you are!
Really enjoyed, thank you for your effort brad
thank brad
You can suggest laragon instead of xamp or wamp. It's really better than both
Hi Brad! I make tutorials as well and it takes me days just to make a 10min video. I'm wondering how much time you spend per day for a long tutorial like this one? Do you have any tips to speed it up?
Just got job as Junior Laravel developer and your Laravel series was my first entry to learning Laravel.
Awesome! congrats
@@TraversyMedia thank you so much
Your reply means a lot
what s the path you took after finishing this project?
@@mohamadrfawaz4859 i practiced by creating my own small projects to show on my portfolio. My github was updated with these projects which helped me get the job.
@@pratikshrestha1026 ah I see did you have any experience with php before learning laravel? like any profound experience? because my only experience is the 4 hour bootcamp and its giving me anxiety lol
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. ❤
how much time it took to compete this video?
0ne week..because i had to learn documentation
@@eliodbomboy6063 okay thanks
@@shravyashetty3115 you are welcome
@@eliodbomboy6063 thanks my boi, the project is done! my app does everything with Laravel, sends emails, generates pdfs, admin panel/user panel, a lot, all from this video lol
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!
Some may be mad at me for that lol. I don't care what anyone says, PHP, Laravel and even Wordpress are very useful in web development, especially the area that I come from which is small business, freelance, building products, etc
As long as WordPress still exists, php can't die
PHP is also perfectly suitable for enterprise level applications.
@@TraversyMedia thanks for this course. 💯❤
Don't say that loud, most of traversy followers hate php as hell :D I still like it more than javascript though
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(...
Thanks a lot bro .. God bless you. 🙏
Thank you, man. I was gonna lose my mind to figure this out!
oh my god i was stuck on this for sooo long thank you for you comment!!
Dude, you saved my evening!!!!!
I was almost going to depart on a sabbatical to find out what was going on.
You are a legenderay persona! Thanks a heap.
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.
sickk!! glad to hear that man.
Just out of curiousty, im going down this path also, how much does a 'Senior' of laravel get paid?
Hire me am freshly graduate in software engineering, got strong grip over SQA
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: "". 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.
Wow thanks, good thing i ctrl+f the comments i wasted so much time trying to figure out why its not working for me!
Thank you
Legend
@@kudoistas5133 Same!
Thanks a lot! 🙂
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, 'update'])->name('listing.update');
@method('PUT')
Otherwise this entire tutorial has worked on Laravel 10! Thank you bradddd!
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.
I also follow you too. You do nice and good tutorials
@@emmanuelochubili Thanks my friend
Notice me my idol codeholic. I'm a fan of yours. I have one year experienced in coding. Keep uploading your php and laravel stuff
@@TheCodeholic you guys are really helping us grow in this tech field #grateful
@@jaywaldluna3158 Thanks a lot buddy. I will do my best to create high quality content.
My next Laravel project will probably be Ecommerce website. I have already started working on that.
Brad. What could we really do without you. Thank you for the time and massive efforts you put in. Really appreciate you .
Truly grateful.
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
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!
We thank you brady form the bottom of our heart, you help me from novice to sophisticated PHP developer
Amen to this Brother! So true!
Yes! so true
Brady
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!
he's the best
Since 2015 I have never looked back this channel has impacted lots of skills to me may GOD Bless you PhD, Engineer, Professor all time winner Mr Brad 🙏🙏🙏
👏👏👏👏👏👏👏👏
Thanks so much! I would not consider myself any of those things, but I appreciate it 😉
@@TraversyMedia Well, at least you could consider yourself a professor, according to Merriam Webster :)
For me, Traversy Media is like a university...thanks a lot Brad, your tutorials are always insightful and helpful.
he's more than a university bcos these staffs are never taught at the university.
Wow, a week looking for a Laravel video to watch when I'm not so busy next week... this is the one, just because it's you!
Thank you for everything!
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!
Just finished your 13 video Laravel course and it was so helpful.Thanks brad you make us believe that it is possible.looking forward to this.. respect to you all the way from Zimbabwe
Thankyou, Brad - great course. For anybody struggling with a "Target class [YourController] does not exist" around 1:44, even when the controller is def imported (with "use"); the solution is just to prefix your controller's name to fully qualify where it lives. For example :
// All products
Route::get('/products', [App\Http\Controllers\ProductController::class, 'index']);
// Single product
Route::get('products/{product}', [App\Http\Controllers\ProductController::class, 'show']);
Here I'm using a controller called ProductController whereas Brad is using ListingController or something like that in the vid. So previously, I just specified "ProductController" & I got the "does not exist" error; prefixing with "App\Http\Controllers\" fixed the problem. Honestly dunno why it's required, but hey. Hope this helps somebody. 😄
I just completed this project and I wanna thank you from the bottom of my heart.
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!
4:03:37 To be able to create new gig, you need to add "user_id" to "fillable" in the "Listing" model.
Thanks bro
Yep. If you didn't do it previouslly in the provider.
Thank you!
Ačiū!
so easy to forget, thank you
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.
THANK YOU, You saved I couldn't find the problem and I was pulling my hairs out on this for at least 2 hours i should've looked at the comments sooner
@@NuggetsLess You're most welcome!
Bro, I almost got gray hair because of this fillable thing. Thanks for the tip!
awesome! you saved my time haha
thanks mate! you are awesome 💪
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.
Thanks a lot man !!!
@@angelgomez9246No problem :)
Thank you friend!
I added it but still not working
protected $fillable = ['title', 'company', 'location', 'website' , 'email', 'tags','logo' , 'description'];
@@angelgomez9246 I got it : php artisan storage:link
I learned more in this tutorial than all the others combined. This was a truly awesome tutorial. I have been programming in PHP for quite a few years I just have never really had the time to learn Laravel. This was truly the best course.
how much time it took to compete this ?
Hi Brad, amazing tutorial. It might be worth mentioning that you need to add the 'logo' to the protected $fillable element to make the create gig button commit the path to the sql database. Scratched my head on this bit for a good 30 minutes wondering what I had done wrong!
Thanks for taking the time to make this introduction video!
The same happened to me. Thanks for the comment! 👍😅
@sythous1313 ahhh you're welcome, glad i was able to help someone! 😊
"Just don't give up" What a beautiful message by Sir Traversy, love it
This was great! PHP frameworks have always been a little intimidating for me, but you do a really great job explaining all the details. I had a project where I was trying to stick to 'vanilla' OOP PHP, but at some point I realized I was spending a huge amount of time just building out my own (crappy) framework. I think after this I'm ready to try Laravel! You're an awesome teacher. Thanks so much for this tutorial.
By building your own crappy framework, you get yourself the knowledge and experience to get Laravel. Don't underestimate the hard way learning: it's always pay in the end.
@@marcofloriano you are fake news!
Had never touched PHP before this video and now I have a whole project. I love this video because of the clear instructions and because it just works. Thank you!!!
Under Component Attributes at the 1:32:53 mark, it discusses using the 'attributes->merge' to add classes to the component. I couldn't get it to work. After a little bit of research, I think it will add new classes, but it won't override a class that's already defined within the component. I'm posting this to either help others or for someone to tell me I'm wrong so I can figure out what in the heck I was doing differently than the lesson.
same issue
@@abhishekperera-dev You can make the ovveride !important. e.g.
@@colinaustin8421 ❤️
@@colinaustin8421 thanks a lot! that's something very useful :)
Thanks for this helper, I had same issues
@@colinaustin8421
A long course, but really beautiful, finally a person who calmly explains there is no course like this in Italian and thank you for knowing English really well, congratulations.
Thank you Brad. I have been out of the coding life for a good while, and was using Zend Framework before my work life changed in a different direction. I have been trying to get going with Laravel over and over again, starting with the packages like Fortify and following various youtube tutorials. Your course here really had me getting a much better understanding of Laravel. At the end of the course i tried pausing your video, coding what i thought would be your next move, and got really excited when i got it right - Thanks a ton!
I have to thank you. I watched and studied this course early this year and I'm now working part time as assistant of a senior developer while completing my CS degree. We use Laravel a lot.
Just one small criticism: the point of using migrations is having a documented history of how your database evolved over time during development, so you can easily go back and forth from/to different points. So if you need to change something in the database you don't keep editing the same migration, you create new ones.
Great take and actually having the date in the name of the migration file stresses your point
You can change it as long as the feature is not promoted to development
Thank you Brad for creating this tutorial. When you create the next laravel video (the deployment), if possible, could you also include how to deploy to shrared hosting, (no SSH access). I'm sure few of us are still using shared hosting. Thank you again for teaching this🙏
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
I think I speak for all your viewers when I say thank you for al the time you put into making these videos. We are extremely grateful. And I'd rather watch long videos that goes deep into the subject than short videos that leaves me with hundreds of questions. And it's way easy to navigate thanks to you splitting it into chapter. Thank you, Brad :)
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!
This is one of the best from-scratch Laravel training videos That have viewed. I literally sat through the whole 4 hours and did every last thing with Traversy. I can not say how much I have learned and That I'm already applying a lot of what I learned in my own project. Lot of my blockers is now resolved and I have a lot of new features because of this. Thank you so much for this video
great skills for teahcing, never felt a course so ligth, but really complete and advance, THANK YOU SO MUCH GREAT WAY TO START THE YEAR.
What an absolutely great course! Thank you. I learned Laravel several months ago, stepped away from programming for a while, and became very rusty. This course had EVERYTHING I needed to get back up to speed.
Just 2 Weeks ago i got my first developer job.
I was never interested in Laravel or PHP in general. But since we use Laravel with Vue + Vuetify, i got into it the last 2 weeks and i have to say:
I love Laravel. Its just so nice to have everything you need in a good structure.
Cant wait to build my first new project with it.
This is one of the best courses I have ever watched in my life ❤
And I'm jaw-dropped with Laravel, it is sooo easy and crafted compared to many other frameworks from different languages, incredible!
did he also made a project in this video?
I think this is the best course I ever watched so far, thank you for the clear explanations.
Brad, you are hero of many developers in this century, thank you so much for this content and God bless you 🙏🙏🙏
I was familiar with Laravel but got really rusty after not using it for a couple of years. This was the perfect refresher. Cheers Brad
Very happy to see you're doing long form tutorials! This is what's required to become a developer. Keep up the good work!
I have just learned from this to use Laravel and have successfully developed a custom application for registering to attend to a conference. This is one of the best language tutorials I have seen in the last 15+ years. Thanks for that!
This literally could not have come at a better time! We're just starting to use Laravel at work and I just finished your PHP crash course. Thanks Brad!
You know one thing I do every morning is checking if Brad has uploaded any new videos. And here I am. Watching this great episode of PHP. I love you, Brad, All I know now is because of your efforts. God bless you
Thank you Brad for this. I was literally just going through your PHP course when you popped this one up. I hope you and your family are well and welcome back. :)
I just landed a Jr Laravel Dev remote job thanks mainly to this video. First I landed the internship and after doing a big ass Laravel project that landed me my first job today. My background is very obscure so I can never thank you enough for the knowledge gained here. Not only the amount of money but having a job is life changing for me:)
Thank you so much Brad, for making this Laravel Course
Just wanna add a little bit of info, for windows user instead of XAMPP, you can also use Laragon for local dev server
It is portable and easier to use rather than XAMPP
You can also easily switch PHP version with just one click
Laragon! Yes. I knew I was forgetting a big one. Thank you.
I'll check this out. Thank you!
Thanks. Is Laragon free?
This program seems to use older versions of PHP though, why is that the case?
In five days I finished watching this entire video and learned a lot about this framework , Thank you
شكرا لك ❤❤❤❤
Hey Brad, I'd like to offer a friendly suggestion. I got a bit hung up on the route model binding section because I misread a lowercase 'l' as an uppercase 'L' in your code. Using a slightly different font in VS Code would make it easier to distinguish between the 'l' and the 'L'. I'm using: Consolas, 'Courier New', monospace and it's a bit easier to read but there may be even better choices.
the samething happened to me and i was stuck on it for quite awhile
Wow, just completed this crash course and I have to say, you're absolutely amazing! The way you explain things is fantastic, and I really appreciate that you make it so accessible for beginners like me. Thank you so much!
He built that project from zero to 100 right?
at roughly 24:30 you mention extensions for php. it's noteworthy that the "go to definition" (which you explained earlier to see the origin of the route class) in vsc does NOT work without php intelephense installed.
i like how you run through all of the codes and revisit them everytime they get referenced from another code, something that i would always ask. thank you so much for this!
Great tutorial. Really extensive. My only gripe is that intelephesense doesn't like auth()->user()->listings()->get() from ListingController::manage (although it runs just fine).
If possible, I'd like to get a lead on a good source for:
- Unit testing in Laravel
- tailwind/bootstrap/whatever: Every time you string together a bunch of classes and get a perfect layout it looks like magic to me.
Thanks.
Yes, I wonder what happened here with the listings() method
Im having the same thing, but my manage page is getting a 404...
Just change auth()->user()->listings()->get() to Auth::user()->listings()->get(). Then make sure to import and use Illuminate\Support\Facades\Auth
I am struggling with the Auth() stuff. I actually started reading the comments hoping someone had the solution. I was struggling with the assigning the user to the Gig. I finally found this solution $formFields['user_id'] = Auth::check() ? Auth::id() : true;
But when I added your fix to this I still get the listings showing with the red line below it.@@emmanueluwadone
I got undefined method listings @@emmanueluwadone
public function manage(){
//return view('listings.manage', ['listings'=>auth()->user()->listings()->get()]);
return view('listings.manage', ['listings'=>Auth::user()->listings()->get()]);
// OR auth()->user()->listings()->get() ????? both are not working
}
around 3:06:00 instead of deleting the Rule::unique('listings', 'company'), you can add rule like this: ['required', Rule::unique('listings', 'company')->ignore($listing->id)]], so that it will ignore the current listing. because without doing that there will be unwanted behavior if the company name collides with the other ones.
Thank's a lot for this tutorial, I realy liked that you took the time to explain everthing in details . It was really helpful thank you again.
Brad huge thanks for this crash course man! I honestly love that the entire video is unedited to show the problems you run into and how you solve them. I really learnt a ton from this and can't wait to take these new found skills and build something awesome!💪🏻😁
Might help someone, when you add the logo and its path is not getting added to the db, you must add the 'logo' to the fillable array in the listing model. like this:
protected $fillable = ['title', 'company', 'game', 'website', 'email', 'age', 'tags', 'descreption', 'logo'];
I have different names for the fields so don't mind that.
Thanks so much :)
Brad I started watching your videos during the lockdown and they have helped me tremendously. I appreciate you man
This is what I need brad! Thank you so much for giving us a free learning resources.
This has been really useful, and for someone with a low attention span I was able to watch the whole 4hrs. Thanks man!
Hi Brad, is it possible you can do a course on python just like your Modern JavaScript course in Udemy?
Yes, that is possible, but I need to update Modern JS first. It's been a while. Yeah I would like to do something on Python eventually.
@@TraversyMedia Great stuff man and keep up the good work....
I did this course in 2024 and it works fully. whoever interested, dont hesitate to do. all the best guys. keep coding
Brad can we get a full fledge Laravel course on Udemy?
I also waiting for full pledge laravel course
I'm watching this unique video tutorial on a work Windows PC with restricted privileges and very limited facilities and I'm rebuilding the application on my personal laptop(Linux) that is without any internet connection. Actually I'm working on a merchant vessel that is in the middle of the Ocean, as a rule, and I'm very glad to see extraordinary people like Brad , that give us ( to beginners like me ) the opportunity to proper learning Laravel (in this specific case) . Thank You very much!
For novices like me, I would say that I prefer to use the .env file instead of touching the config hard coded stuff.
For Laravel 10 the process of rebuilding the application is going smoothly, so far.
Thank You again Brad, and God to Bless You!
Hello, your tutorial is very helpful , however I have encountered an issue with the manage listings part where I get an undefined method error for listings() in the auth()->user()->listings()->get() and it confuses me since you don't seem to have any errors with that. Any suggestions on how I can fix that error? your help is much appreciated, thank you!
Having the same issue
Same issue here, have you found a solution?
I think you just need to move the Manage listing route higher on the web.php page (so the router does not try to match on a wildcard listing named "manage").
@@FlightPhysical Thank you. It works.
I have the same problem. Could you help me if you have the solution? Moving listing route higher doesn't solve the error
I swear every tutorial I search you’re there! Absolute god tier content. I started off 3 years ago learning coding watching your vids. 3 years later as a experienced dev, still watching your tutorials. Cheers 🎉
Really nice course...noticed the CSS isn't working anymore, it just stopped... anyone else experiencing this?
it is working fine for me
@@hissatsu_u yeah ...I think it was a network issue
Hi I ahve been watching this channel for years now and I am a Senior Developer I must say that it has helped me along me journey, keep it up!!
In a project like this, would you develop the front end HTML files (like you have in _laragigs_theme) first before building out the back-end? If so, would it be fully styled or more of a boilerplate thing?
I would, probably would wait for the front end team to hand us (backend) some mock up details XD
I'm working with winter cms (built on laravel) on a daily basis and I always start with the backend. I get the screen design from my ux designer tho
@@hansheinrich700 hi, as a new bee in tech who is interested in learning laravel, is it possible to be good in laravel without being very good in php
@@mztaheebraheem4526 Laravel is a PHP Framework so you can't skip it
Just completed the app. Brad, you do a great job of explaining Laravel Framework, request response cycle, php and more all in one easy to follow tutorial. Awesome production!
Thank you for your work Brad. I'm developing a quite complex app in Laravel and now are some months that I'm into this project at work.
I was reviewing some content from this scratch course and now I can follow everything quite easy and it's so helpful, there was a lot of helpers that I forgot that are so useful.
Thank you for everything and for spreading the joy of coding and of knowledge 🙂❤
Thank you for this course! I started on a paid Laravel course, and after the course instructing the downloading of an incredible amount of helpers, addons, apps and tools, reached a point that was not able to continue due to some, still unknown, problem I could not resolve. Even after watching sections over and over and downloading the repository for that section. This course was straight forward, easy to follow and best of all; easy on my development system configuration. Keep up the great content. Thank you again!!!
Thanks a lot for this, you're making me learn A LOT! I am currently working with Laravel for the first time in my life and I was totally lost. I'm following this tutorial step by step and now I feel much more confident at work.
Thank you again!
I am your fan since 2019 and you made my career and whatever I am today
your voice is my asmr, from the bottom of my heart thank you for all you do, please never stop. thank you
Great job on this. I learned a lot. One thing I would add. Reference the $fillable array each time you add a new field. For example, when adding "user_id'. It kept throwing an error until I realized I had not added this field to the $fillable array.
i was struggling with getting clarity in laravel , this project was so so helpful. I tried all concepts shown in this video. Thank you for this video.
Some people, like Brad, deserves Nobel prize for their efforts and good will to teach others new skills and helping them to become better in what they are doing. Tnx Brad.
Hi Brad,
I've watched so many of your tutorials, and you're fantastic at working efficiently on a Mac! I'm in the process of switching from Windows to Mac, but I'm finding the keyboard shortcuts a bit challenging. It might sound a bit odd, but I'd love to see how you physically use your keyboard while working on a Mac. Specifically, how you position your fingers and how you handle the Command key (which is like Control on Windows, but placed differently on the Mac). I really appreciate your work and all the value you bring. Thanks in advance!
You explained just the right things so that I understand both the why and the how, plus the little quirks that help with the inevitable trouble-shooting that's required at times. The Laravel videos on a certain paid website are more like typing classes.
Perfect timing, I was just about to start to rewatch some old Laravel videos but I can do this instead. Thank you for this tutorial.
I can't believe this! I jumped out of my seat and screamed with joy when I saw this video pop up in my feed. Not sure if Thank You is enough Sir Traversy for all that you do for us. Many Many Thanks and Stay Blessed!
Thanks man, I just finished the project, there were a lot of issues but in the comments there are a lot of help, so thanks to everyone too.
Your voice is so chill to listen to! Great content, not too much extra stuff going on. Appreciate you for making this course!
One of the best tutorial, i now understand why things are the way they are. This tutorial showed me what's under the hood
The course may be short in time but very dense in information. It took me 2 days to watch and understand most of the concepts. Thank you Brad.
do you code along?
A few years ago I learned laravel from your crash course and I've been recommending the tutorial to other people, today I was finding the link to share the tutorial with another friend and I found this, Thank you for the refresh.
One thing to point out here if not mentioned already... When deleting a listing, the image file itself still remains in the storage/app/public/images folder. I managed to solve this by adding an 'if' statement to the destroy method which checks for the existence of the image file path / not null. If true then the file can be deleted using Storage::delete('public/' . $imageFilePath). Have also added a cool fade-out effect for the flash messages and set the URL slugs to match the listing title (instead of id). Had to modify some of the controller methods but it's all working. Thanks Brad - love the channel!
Amazing course, thank you Traversy Media! I'm being transparent about this course though. I'm new to the backend world and just know the basics of javascript and how the DOM in javascript works as a scope of my knowledge with a coding language. However, I got to the database section and felt super overwhelmed trying to understand where/what connects to what and what everything is doing through this laravel application. So, I started the course completely over. So, the second time around, I literally went through each section Trasversy Media covers and once he covered it, I would pause the video and write down the code, name, and a short meaning of what he covered, and that helped me tremendously! I HIGHLY recommend that for any newbie developer that's coming into the tech space or learning PHP/laravel for the first time. The reason why I suggest it is because it doubles your learning by soaking it in from doing the course along with Trasversy Media but also writing it down gives you clarity, explaining what that snippet of code is doing as well as the name of it. And lastly, redoing what you just got taught from your brain and no notes will test you on the syntax as well as you developing the skill of talking things out loud to solve the problem.
PS: I hope this message reaches future developers trying to learn Laravel! I know you can do it, just remind yourself. If you can build laravel applications that immediately give you the permission to ask for at least $60k at any company, and for most of us that is life-changing and from there it only increases even higher for you. So, just endure this short-term struggle now, and afterward, you'll reap the rewards of your hard work and success!🙌😃
You are a great teacher! This is my first time with Laravel and I must say I tried other tutorials and I didn't like them but when I was divinely led to your channel, it has been smooth running for me. I'll recommend you any day. God bless you.
This course was great for understanding how Laravel works.
Very complicated features have been simplified.
A very fun tutorial, as soon as a question came up the answer was immediately provided.
Thanks!
Not to be that person, but this could not have come at a better time. I just got into learning Laravel this past week/weekend and was still struggling to find decent content that was recent. I much prefer your teaching style as it is easy to follow and now I have been gifted with a highly in-depth, quality video from the man himself. Thank you.
I can't even say how long I've been desperately looking for a good laravel tutorial and then you. Thank you for everything that you're doing. Go on!