Laravel Tutorial For Beginners (Simple User CRUD App)

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 253

  • @LearnWebCode
    @LearnWebCode  Рік тому +58

    November 2024 update: I just posted a Laravel Deployment Guide video on my channel, link here: ua-cam.com/video/oMtPkNMKpV8/v-deo.html
    Hey everyone, I didn't follow a detailed script for this video, just a general outline, and I forgot to take care of the detail that only logged in users should be able to create posts. In our PostController method that creates posts, you could simply wrap that action in an "if" check using auth()->check() as the condition.
    Also, the logic that checks if you're allowed to edit or delete a post will cause the "edit-post" URL to error if you're not logged in. I'm so used to using policies and middleware in Laravel to perform these types of permission checks that I oversimplified this example in this lesson. Hopefully the video was helpful in letting you understand the big picture aspects of Laravel, and I'd encourage you to research "Laravel Auth Middleware" and "Laravel Policies" for a much more organized and official way of handling permissions. We cover all of these topics in detail in my 14 hour premium Laravel course. Thanks! Brad

    • @lwiimbokasweshi
      @lwiimbokasweshi 6 місяців тому

      My show Edit function was modified a bit to remove the error when logged out. if(isset(auth()->user()->id))
      {
      if(auth()->user()->id !== $post['user_id'])
      {
      return redirect('/');
      }
      }else{
      return redirect('/');
      }
      Instead of just
      if(auth()->user()->id !== $post['user_id'])
      {
      return redirect('/');
      }

  • @simonlooker6000
    @simonlooker6000 Рік тому +44

    Brad, you are a natural teacher. And you have obviously invested a lot of time in building your knowledge. Sincere thanks.

  • @primal4219
    @primal4219 Рік тому +4

    2 minutes in and already love it, basic styling of it just makes me happy, all of those other courses like 70% of a time its about styling and not actually about functionality of laravvel

  • @anselmdike2817
    @anselmdike2817 Рік тому +3

    Anyone looking to learn Laravel .. I promise you.. you're in the right place . The instructor is the best thing that ever happened to programming ... He is the bomb

    • @noname.1539
      @noname.1539 Місяць тому

      Do u think is late to start learn laravel

  • @nav7682
    @nav7682 9 місяців тому

    By far the best introduction video I have seen for PHP Laravel. Amazing work, clear and concise.

  • @historyoftheempire464
    @historyoftheempire464 Рік тому +2

    Never seen better teacher than you. Thanks for teaching us.

  • @rizmandesu
    @rizmandesu Рік тому +1

    26 minutes into the video and i must say, this is really informative for beginner like me. Thank you for the video.

  • @IfeyPrecious
    @IfeyPrecious 10 днів тому

    you are amazing... this is my second video of your tutorials

  • @mariliasl
    @mariliasl 8 місяців тому +5

    Hi Brad, I got an intership using this blog tutorial (a very similar, but even simpler hahaha), thank you so much! Now to start the job I'm doing your complete laravel course on udemy, your teaching is wonderful. Hugs from Brazil

  • @P3acemeiker
    @P3acemeiker Рік тому +2

    I love the way you teach this. a total beginner has a chance. Good work!

  • @musimbaalex4717
    @musimbaalex4717 Рік тому +1

    I have a project that is basically in line with your tutorial. I have been able to build most part of the project using your guideline. lots of gratitude all the way from Kenya 😄

  • @MobiusCoin
    @MobiusCoin Рік тому +3

    You taught me how to create WordPress themes from scratch 6 years and I've since turned it into a successful career and jump started my dev journey. Since then I've been through the JS/TS ringer and I'm just a little tired of the venture backed hype train of the Node world (everything is basically Vercel) so I'm back to do some comfy ol' PHP development. Excited to learn Laravel, I've only heard good things.

  • @amerikan
    @amerikan Рік тому +8

    Great tutorial! For the length of the video it’s very digestible. I think it touched on all the stuff I needed to get started. I’m coming from nodejs/express setup, so this got me up to speed. Thank you!

  • @scarestudent5064
    @scarestudent5064 Рік тому

    This is actually the best course i found here on UA-cam,if i could buy your course i would without hesitation,thank you so much

  • @DavidGriffis
    @DavidGriffis 10 місяців тому +1

    Finally a basic video that gives you a good foundation. It gives you a practical understanding of the mvc components including routes and a look into best practices when it comes to models. Using the Visual Studio add on that includes module references is helpful too. Thanks so much!

  • @Epikht
    @Epikht Рік тому +4

    Bro you’re my favorite teacher here
    Thank you

  • @abdelhamid4136
    @abdelhamid4136 11 місяців тому +1

    Amazing video brother, if you are a developper and looking to get familiar with the concept of the video this is the one
    +1 sub

  • @omarporteronassar1
    @omarporteronassar1 Рік тому +9

    This was awesome man ! I always did vanilla PHP, and wanted to switch to Laravel, this makes things 10x easier to understand everything

  • @soumyajeetsengupta3108
    @soumyajeetsengupta3108 Рік тому

    Just completed the complete video. I really want to thankyou from the bottom of my heart. Other tutorials just they were coding and no much this good explanation. From you I learned and I also learned what we are doing and why are we doing it. I really enjoyed learning from you. Thankyou so so much. Looking forward to learn more from you.

    • @LearnWebCode
      @LearnWebCode  Рік тому

      Thanks so much for the comment; focusing on the "why" in my lessons so that it makes sense for people is why I do what I do; it's so awesome to hear that it's actually helping. Cheers!

  • @Monkers18
    @Monkers18 Рік тому

    11 mins in, Im glad i found your channel this is the best tutorial I've ever watched. Other channels confuse me, this is perfect.

  • @chibuzoronochie604
    @chibuzoronochie604 Рік тому +1

    You are a Teacher indeed. WELLDONE!

  • @awebcode
    @awebcode 5 місяців тому +1

    After long time sufferring..I Finally understood. Thanks for clear presentation and teaching

  • @josephm.6676
    @josephm.6676 Рік тому +3

    Very timely. I have a php script to modify and hopefully start a small business. You can imagine my joy when my favourite teacher posts the exact framework I need for the project. Keep it up Brad. Kazi mzuri!

    • @LearnWebCode
      @LearnWebCode  Рік тому +1

      That's awesome timing! Thanks for the encouragement; best of luck on the new script & business!

  • @SharkFaceKilla
    @SharkFaceKilla 7 місяців тому +1

    This was great to get a quick idea of how to use PHP and Laravel, thank you for this!

  • @PPartners_-iw4qq
    @PPartners_-iw4qq Рік тому

    This is the best Laravel tutorial I have seen so far. Thanks so much.

  • @sakalansnow6579
    @sakalansnow6579 Рік тому

    I just bought your Laravel course. The way you explain things are amazing.

  • @marleenloohuis2111
    @marleenloohuis2111 Місяць тому

    Really great intro to Laravel. Thank you very much. Very good style of teaching. After finishing this video I bought your Udemy course.

  • @codefixbd
    @codefixbd 4 місяці тому +1

    can't wait but pay thanks to make such a tutorial that is really great and easy to understand.
    keep it up to the last

  • @randomhominid9816
    @randomhominid9816 Рік тому

    Good tutorial that lived up to it's title. I now have a foothold on CRUD in Laravel. This was a nice example and explained just right.

  • @TheQueenofAutomation
    @TheQueenofAutomation Місяць тому

    Clearly the best teacher 🙏🏽 thank you

  • @systemforge
    @systemforge Рік тому

    omg! whhhatt an amazing video... First time coming to php world, and boy u literally set it on fire - thankyou so much for this fantastic session!!!

  • @johnforeverrules
    @johnforeverrules Рік тому +1

    first time viewer here. i was really amazed by your teaching skills. i am sure that this video will build a strong foundation for learning laravel for me and countless others. i wish you all the success in life. God bless

  • @mohammad-hosseinhashemian6804
    @mohammad-hosseinhashemian6804 Рік тому +1

    this video changed my view to laravel! for sure i'll try it.

  • @gear1100
    @gear1100 8 місяців тому

    Great tutorial, perfect cadence and clarity on everything. 😊 Thanks! I look forward to watching more of your tutorials.

  • @wandenreich770
    @wandenreich770 5 місяців тому +1

    love the intro..just perfect

  • @slweb621
    @slweb621 Рік тому +1

    This is one of the best videos I have learned about Laravel, can you give us more advanced Laravel lessons?

  • @louitdev5540
    @louitdev5540 5 місяців тому

    Thank you so much for making this tutorial. I learned everything perfectly, unlike in my classes. 😃

  • @metsumilitia
    @metsumilitia Рік тому

    Loved this crash course... actually I bought it because I loved the way Laravel works and iI wanna know more about it. Thanks a lot!!

  • @tjat55
    @tjat55 Рік тому

    by following you I learn to code and understand English.
    Thank you very much.

  • @jellix79
    @jellix79 Рік тому +1

    Thank you so much!! You just took me by the hand and led me into the laravel world. Due to your calm and clean teaching I'm feeling really comfortable with that right now.

  • @agneldominique352
    @agneldominique352 Рік тому

    The Best Teacher on any platform available... gave us the most simple to digest Laravel tutorial for us .. i will definitely get the full course.. Iwas always confused on Laravel up till now.. Thankyou so much Brad..

  • @mahdipourlotfi8027
    @mahdipourlotfi8027 Місяць тому

    واقعا خوب و حرفه ای توضیح دادید، ممنون از شما

  • @lepre4720
    @lepre4720 9 місяців тому

    Loved the video and fleshed out the bare basics for me.

  • @KuyeaWil
    @KuyeaWil 3 місяці тому

    Thank you sir ! I really enjoyed your video , i learned a lot. I wish you could take your class someday . i finished your video two days from setting the composer to this video i also copy what your doing while watching. Thank youuuuuu

  • @pavelpronin6408
    @pavelpronin6408 11 місяців тому

    Simple thank you so much, when you can explain simply it's a sign of a pro

  • @growllcraft6932
    @growllcraft6932 8 місяців тому

    Easy to understand tutorial, you got yourself a new subscriber :D

  • @LoveAntifa
    @LoveAntifa Місяць тому

    This has helped me out like you wouldn't believe so a massive thank you, now to figure out how to make it non localhost

    • @LearnWebCode
      @LearnWebCode  Місяць тому +1

      You're welcome! I'll have a video soon about how to host your Laravel project on affordable traditional hosting.

    • @LoveAntifa
      @LoveAntifa Місяць тому

      So I'm now able to host the project after hours of searching lol

  • @sideshowlol
    @sideshowlol Рік тому

    Brad's Laravel course has been very helpful for me. I had no clue about the inner-workings of Laravel before I went through Brad's course. It gave me a solid grounding in many important parts of the Laravel infrastructure and I'm a big fan of Brad's style of teaching which is always clear and understandable. Thanks to Brad's course, I am now involved in a fairly large Laravel-based project. Highly recommended. Thanks Brad! 🙏😎👍

  • @watsoncyrusanikwai3888
    @watsoncyrusanikwai3888 Рік тому

    Brad, happy to see any project that involves laravel workflow as well.

  • @maanji2965
    @maanji2965 Місяць тому

    mate you are the best so far

  • @fandinurrokhim2615
    @fandinurrokhim2615 Рік тому

    thank you so much, very easy to understand, I'm struggle learning Laravel before know this video

  • @knightonnata
    @knightonnata Рік тому

    Thank you for sharing this! Your Tutorial is easy to understand for me.

  • @longnguyenthanh1477
    @longnguyenthanh1477 Рік тому

    Thanks you so much for your simple video. It gives me the overview about CRUD in Laravel quickly.

  • @azm00
    @azm00 6 місяців тому

    An awesome and informational knowledge especially for beginners in Laravel like me. Great video. ❤❤❤

  • @curtismaple
    @curtismaple 4 місяці тому

    Awesome Brad! Thank you! I like your way of teaching 👍🏼

  • @patrickchieni7039
    @patrickchieni7039 6 місяців тому

    Great tutorial.. with it i also came to find about xcrud - laravel and now making app is as easy as abc

  • @l1keeN
    @l1keeN Рік тому

    Omg, great tutorial! So hard for a beginner things in such easy presentation

  • @eric_lan
    @eric_lan 7 місяців тому

    Great video👍. It's nice go through as a Laravel starter. It might be great to briefly introduce how the error handling works(It currently has form submission, rules etc. but it doesn't mention how it handles error message), and I believe it will be interesting.

  • @phillcoulson-z6z
    @phillcoulson-z6z Рік тому

    this video really helped to understand the basics. and yes, it is simpler then others also then php

  • @Soda99817
    @Soda99817 3 місяці тому

    This video is absolutely amazing! Thanks heaps and keep up the great work 🙏

  • @europauniversalis5406
    @europauniversalis5406 Рік тому

    You have a talent as a teacher and I really enjoyed this video. Subscribed and looking into your full course. Thank you!

  • @josephlivengood4508
    @josephlivengood4508 Рік тому +1

    I bought your course on udemy, this would be a good addition.

  • @sergey_zatsepin
    @sergey_zatsepin 6 місяців тому

    Thx, 1:14:14 can be done just by auth()->user()->name, but for the way of using relation - ok, it will be good to know anyway

  • @dmna3722
    @dmna3722 9 місяців тому

    Going through the tutorial and hit a snag not captured/updated in the video. Currently, the "name" attribute needs to be added to the input tags for the @csrf token to work. I was following the video and still kept hitting the same error, double checked my code, and finally just searched the issue and found the solution. Wanted to share this for anyone wanting to do this tutorial now, as it's been a year since release. I'm always weary of tutorials older than 6 months because so much can change in that time with coding syntax, libraries, etc. Wish these snags were updated in the descriptions of videos older than 6 months so people can still learn from/utilize these great tutorials. This one is good so far, just hope no other speed bumps pop up!

  • @denvergomez7069
    @denvergomez7069 Рік тому

    You are a great teacher! keep it up bro

  • @vyshakkriss7765
    @vyshakkriss7765 Рік тому

    Laravel is 🔥🔥🔥, so cool! So easy to implement a lot of things. Will start coding websites in Laravel.

  • @CamiloSanchez1979
    @CamiloSanchez1979 Рік тому

    Excellent tutorial, I love that you went right for it in one video. Subbed!

  • @wolfterritoriesgrid
    @wolfterritoriesgrid Рік тому

    This is a BRILLIANT video. thank you

  • @this.channel
    @this.channel Рік тому

    Awesome timing. I was just about to learn Laravel.

  • @learningtocode0
    @learningtocode0 5 місяців тому

    very great tutorial to start Laravel. thanks

  • @rahulemathi
    @rahulemathi Рік тому

    Thank you I've learned new things from this video and I loved it Thank you again

  • @im_vinodchoudhary
    @im_vinodchoudhary Місяць тому

    great video it helped a lot ......
    keep making more of such content😊

  • @htpkey
    @htpkey Рік тому +1

    Thank you so much for this!
    I've tried getting into Laravel since version 7, but most tutorials that I found were very convoluted or poorly explained. I revisited Laravel after a couple years and came across your tutorial. This tutorial does so many things right when introducing the basics!
    Keep up the amazing work!

  • @kerimtim
    @kerimtim Рік тому

    This is exactly what I was looking for. Great video tutorial Brad. Bravo!!

  • @myam754
    @myam754 7 місяців тому

    Thank you so much for sharing this tutorial! Subscribed!

  • @tong5364
    @tong5364 Рік тому

    A very nice video!!!!
    This really helps me a lot to understand Laravel.
    Thankyou so much!

  • @ahmedtamim2207
    @ahmedtamim2207 3 місяці тому

    Thanks a lot boss! This video really helped a lot.

  • @nielsofficeofficial9706
    @nielsofficeofficial9706 Рік тому

    You always save my day Sir. Thanks a lot : )))

  • @jonathanjohnson2785
    @jonathanjohnson2785 5 місяців тому

    Thanks so much Brad. Learnt a lot ❤

  • @WallyJ2K
    @WallyJ2K Рік тому

    Great tutorial! This could have also been done with Breeze for authentication/creation of users, and then added onto, which would have been a little cleaner, but I love your stuff!

  • @ricksancheeez
    @ricksancheeez 11 місяців тому

    thanks a ton for this fabulous course!!

  • @DylRicho
    @DylRicho Рік тому

    Thank you Brad for this great introduction to Laravel. I've been meaning to look into it for a while but I didn't know if I would pick it up easily. While I wouldn't say I necessarily understand the MVC structure exactly, I do have a basic understanding. I'm coming from PHP and I've never done OOP before, so this is excellent. I will be heading on over to your course to continue learning. You are an excellent teacher.

    • @DylRicho
      @DylRicho 7 місяців тому

      9 months later, I am in love with Laravel, and I'm using it on all of my largest projects. Thank you so much.

  • @juansebastian8647
    @juansebastian8647 Рік тому

    Thanks for the video, I've learned a lot .

  • @ryrymin07
    @ryrymin07 Рік тому

    this is the best course! I love it!

  • @AidanHomewood
    @AidanHomewood Рік тому

    This was fantastic! Thank you.

  • @kratika_19
    @kratika_19 Місяць тому

    your video really helps me

  • @abdulkadirmhassan346
    @abdulkadirmhassan346 Рік тому

    Nice hack. It's working for me. Thank you for sharing this tutorial

  • @mounir101
    @mounir101 Рік тому

    Thanks so much for this amazing tut bro. I really like it and all your tuts aswell. Kind regards.

  • @RodrigoMendoza7
    @RodrigoMendoza7 11 місяців тому +1

    2:44 I wasn't sure if that was my cat or Brad's 😹

  • @mbguantay
    @mbguantay 11 місяців тому

    Thank you very much, it was very helpful!

  • @Hyp3r8Sniper
    @Hyp3r8Sniper Рік тому

    Awesome succinct explanation. You didn't lose me once and you can bet I'll be paying for the course. Cheers

  • @DStein22
    @DStein22 3 місяці тому +11

    You can't do 'auth()->login();' but rather 'auth()->guard()->login();' now. Hope this helps to anyone that see this.

    • @andreyga22
      @andreyga22 3 місяці тому

      are you able to call usersCoolPosts in the web.php file with this method? It keeps throwing an error exactly in that line
      $posts = auth()->guard()->user()->usersCoolPosts()->latest()->get();

    • @jeffqseid2169
      @jeffqseid2169 3 місяці тому

      thanks, works as of 27 september.

    • @Lopeirada
      @Lopeirada 8 днів тому

      Thanks works as of 20/12/2024

    • @Rubs-gk5of
      @Rubs-gk5of 5 днів тому

      Thanks

  • @DGCastell
    @DGCastell Рік тому

    Neat way of explaining it! I've had experience with CodeIgniter before so it made sense quicker but even if I hadn't it is really easy to follow!

  • @siphamandlambokazi331
    @siphamandlambokazi331 Рік тому

    Thanks man, I think you also taught me my first programming language, C++. We should focus on each part to dig more now, like going in depth with the author() method, validate method and relationships. Would you please teach us laravel relationships like hasmany and more?

  • @mdazhardware
    @mdazhardware Рік тому

    Thanks for this amazing tutorial.

  • @zegitro
    @zegitro 3 місяці тому

    perfect teacher

  • @ElmoPlayss
    @ElmoPlayss 10 місяців тому

    Could you do some troubleshooting in your videos aswell? I'm at 21:35 and so far I've had to look up 14 different errors that I got just to continue following the video.

  • @mdony722
    @mdony722 Рік тому

    Super Tutorial , have nothing but priases

  • @bartatube2917
    @bartatube2917 Рік тому

    what a fantastic tutorial

  • @avidhakal8403
    @avidhakal8403 7 місяців тому

    hey there brad.
    i've got a question.
    at 10:40, you submitted the form to register even though there is no such page as register, how ?
    when i tried the same, it gives an error.
    it shows url/register?
    and down below error says The GET method is not supported for route register. Supported methods: POST.
    even when i'm copying you exactly