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 RUclips that you can check out first if needed - ruclips.net/video/BUCiSSyIGGU/видео.html I also have an API project with Sanctum Authentication - ruclips.net/video/MT-GJQIY3EU/видео.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
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.
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
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!
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
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.
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(...
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!
@@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.
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!
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!
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. 😄
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.
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 🙏🙏🙏 👏👏👏👏👏👏👏👏
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.
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
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.
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.
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
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
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.
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!
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:)
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.
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.
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.
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!
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!
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.
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 :)
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!!!
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.
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 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!
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.
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!
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!🙌😃
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!
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🙏
Hey mate. I'm not sure if you'll read this comment but I'd to say a huge THANK YOU for this tutorial. I learnt A LOT and I'd say more: Because of this tutorial and the learning I acquired from this a got a job. Super, super, super, super thank you for your job on RUclips. All the best of luck to you. I live in Dublin, Ireland. 😀
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!
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.
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
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.
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. :)
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!
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.
As a 10 year software engineer wanting to learn Laravel for fun, I'm loving this tutorial man. All tutorials should be done by folks from Boston, so I can occasionally hear "what tha hell is wrong wit me?" Better than 90% of the courses I've paid money for, and more efficient.
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.
Hey man, programming apprentice here. Just tell you you're a great guy, love your channel, love your courses & tutorials, and hope everything in your life is well. Best.
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 }
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!
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.
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 needed this so badly. I recently got my very first proper developer job and my team is heavily dependent on Laravel, which I know very little if not nothing. This is exactly what I needed. Thanks a million Brad!!
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.
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?
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
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!!!
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 🙂❤
PHP Laravel till the end of world. I ve bought a laravel course couple moths ago and the instructor have messed up the videos took me 1 day to understana what is the .dev and what is the .test and i tho i need to run XAMPP as MAC user. Just came here and realized how easy is, thanks Brand because of you and the course OOP MVC on udemy one day i will land my job and thanks for the free courses is a pleasure. to learn from you. All the best
2:11:38 The csrf tag doesn't prevent cross-site scripting attacks. It prevents cross-site request forgery attacks, hence the abbreviation "CSRF". The explanation was correct though. Regarding "I think you have to have it or you'll get an error": That's true when you left the "VerifyCsrfToken" middleware in place.
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!
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!💪🏻😁
I have a job but I did manage to get through this in about 5 days (1-2 hours a day while coding and taking notes) Awesome tutorial, much better than the previous you did. This one really gets you in to the MVC workflow. And now after this amount of back and fourth between routes, views, controllers and models while tinkering around, I got closer to a homebrew project I wish to do, so really thank you for that! I have tons of questions but I'll try to stick to the documentation and online searches. Best of wishes!
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!
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.
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.
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!
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 RUclips that you can check out first if needed - ruclips.net/video/BUCiSSyIGGU/видео.html
I also have an API project with Sanctum Authentication - ruclips.net/video/MT-GJQIY3EU/видео.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
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
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
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!
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
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! 🙂
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.
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. 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
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
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
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
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.
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!
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!
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. 😄
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!
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 💪
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 :)
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
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
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.
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.
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.
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
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
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
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!
"Just don't give up" What a beautiful message by Sir Traversy, love it
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:)
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 ?
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.
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.
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! 😊
I just completed this project and I wanna thank you from the bottom of my heart.
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!
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
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 :)
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!!!
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!
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 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!
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.
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?
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!🙌😃
Brad, you are hero of many developers in this century, thank you so much for this content and God bless you 🙏🙏🙏
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!
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🙏
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!
Hey mate. I'm not sure if you'll read this comment but I'd to say a huge THANK YOU for this tutorial. I learnt A LOT and I'd say more: Because of this tutorial and the learning I acquired from this a got a job. Super, super, super, super thank you for your job on RUclips. All the best of luck to you. I live in Dublin, Ireland. 😀
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!
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.
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?
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.
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. :)
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?
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
As a 10 year software engineer wanting to learn Laravel for fun, I'm loving this tutorial man. All tutorials should be done by folks from Boston, so I can occasionally hear "what tha hell is wrong wit me?" Better than 90% of the courses I've paid money for, and more efficient.
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.
Hey man, programming apprentice here. Just tell you you're a great guy, love your channel, love your courses & tutorials, and hope everything in your life is well. Best.
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.
I did this course in 2024 and it works fully. whoever interested, dont hesitate to do. all the best guys. keep coding
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
}
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!
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 :)
Thank you for NOT making shorts! The longer format videos are best.
Thanks for all the knowledge you've passed on over the years dude
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 needed this so badly.
I recently got my very first proper developer job and my team is heavily dependent on Laravel, which I know very little if not nothing.
This is exactly what I needed. Thanks a million Brad!!
glad to hear that too bro! how is your job?
@@superfails3048 it was incredibly daunting at first, it is a lot less so now
This is what I need brad! Thank you so much for giving us a free learning resources.
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!!
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....
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.
Brad can we get a full fledge Laravel course on Udemy?
I also waiting for full pledge laravel course
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
In five days I finished watching this entire video and learned a lot about this framework , Thank you
شكرا لك ❤❤❤❤
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
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 am your fan since 2019 and you made my career and whatever I am today
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!!!
This has been really useful, and for someone with a low attention span I was able to watch the whole 4hrs. Thanks man!
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 🙂❤
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.
PHP Laravel till the end of world. I ve bought a laravel course couple moths ago and the instructor have messed up the videos took me 1 day to understana what is the .dev and what is the .test and i tho i need to run XAMPP as MAC user. Just came here and realized how easy is, thanks Brand because of you and the course OOP MVC on udemy one day i will land my job and thanks for the free courses is a pleasure. to learn from you. All the best
2:11:38 The csrf tag doesn't prevent cross-site scripting attacks. It prevents cross-site request forgery attacks, hence the abbreviation "CSRF". The explanation was correct though.
Regarding "I think you have to have it or you'll get an error": That's true when you left the "VerifyCsrfToken" middleware in place.
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!
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!💪🏻😁
I think this is the best course I ever watched so far, thank you for the clear explanations.
Just finished the crash course on PHP, now time for Laravel. I'm going to be so employable by the end of this summer.
Brad I started watching your videos during the lockdown and they have helped me tremendously. I appreciate you man
I have a job but I did manage to get through this in about 5 days (1-2 hours a day while coding and taking notes) Awesome tutorial, much better than the previous you did. This one really gets you in to the MVC workflow. And now after this amount of back and fourth between routes, views, controllers and models while tinkering around, I got closer to a homebrew project I wish to do, so really thank you for that! I have tons of questions but I'll try to stick to the documentation and online searches. Best of wishes!
did he also made a project in this video?
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!
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.
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.
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.
your voice is my asmr, from the bottom of my heart thank you for all you do, please never stop. thank you
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!