Laravel Crash Course

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • This is a Laravel crash course that covers installation, authentication, routes, data, pagination, email functionality and much more
    - Visit Codecourse for more videos & courses by Alex:
    codecourse.com
    - RUclips Channel:
    / @codecourse
    - Code:
    github.com/codecourse/posty-t...
    - Social Links:
    / teamcodecourse
    / alexjgarrett
    - Links mentioned in course:
    Composer (getcomposer.org/)
    Laravel documentation (laravel.com/docs/8.x)
    Laravel debugbar (github.com/barryvdh/laravel-d...)
    Tailwind (tailwindcss.com/)
    Mailtrap (mailtrap.io/)
    Timestamps:
    00:00 Introduction
    01:49 Demo
    04:23 Installing and setting up Laravel
    07:08 Routes, views and layouts
    10:35 Laravel Mix and Tailwind
    15:18 Styling the layout
    17:35 Running migrations
    22:57 Registering users
    44:06 Signing in after registration
    46:46 Authenticated state
    48:30 Logging in
    53:47 Logging out
    57:52 Middleware
    01:06:12 Post form
    01:09:26 Setting up posts
    01:16:06 User/post relationship
    01:18:49 Creating a post
    01:20:14 Listing posts
    01:27:37 Pagination
    01:30:31 Seeding with model factories
    01:33:54 Liking and unliking posts
    01:48:50 Eager loading
    01:53:40 Deleting our posts
    01:56:46 Authorization
    02:02:47 User profile page
    02:06:49 Blade components
    02:10:54 Like count Eloquent relationship
    02:12:41 Single post page
    02:14:18 Sending email
    02:21:23 Soft deleting models
    02:26:31 Final tidying
    02:28:20 Wrapping up
  • НаукаНаука

Комментарии • 999

  • @TraversyMedia
    @TraversyMedia  3 года назад +414

    It is a pleasure to have Alex on. He actually taught me a good chunk of my PHP knowledge way back in the day when he ran under "PHP Academy". Thanks Alex :)

    • @calebmbugua745
      @calebmbugua745 3 года назад +13

      woow..thanks brad for bringing alex to teach us more of Laravel.

    • @akankhaahmed
      @akankhaahmed 3 года назад +1

      same here

    • @muhammadainuddin4650
      @muhammadainuddin4650 3 года назад +4

      Hey Brad, can you please also do a PHP crash course?

    • @cubedev4838
      @cubedev4838 3 года назад

      Alex dont have utube channel?

    • @TraversyMedia
      @TraversyMedia  3 года назад +3

      @@cubedev4838 I think he focuses mostly on his website, but here is the link. Ill also add in the description -ruclips.net/channel/UCpOIUW62tnJTtpWFABxWZ8g

  • @ffr3ak
    @ffr3ak 3 года назад +28

    Dude I remember learning PHP from your tutorials under PHP academy channel back in early 2014. About 6 months later I got myself a first job as a PHP developer which kicked off my IT carreer. Forever grateful! Now here I am almost 7 years later learning new things and found you again. Awesome :)

    • @serenity-indeed2132
      @serenity-indeed2132 Год назад

      was this, you had no prior knowledge of any programming language? and still managed to get a job after only 6 months?

  • @Redragon2501
    @Redragon2501 2 года назад +11

    I can't believe i watched 2,5 hours of coding in one sitting. Just amazing how thrilling and at the same time pleasant this course is done by Alex. Many thanks!

  • @kadershaikh1704
    @kadershaikh1704 3 года назад +19

    Alex is such a good teacher. His explainations are so simple and easy to understand. Brad please want more of Laravel and Vue content from your channel....plzzz

  • @Knards
    @Knards 3 года назад +78

    Alex is a HUGE part of my early learning. Be hard to find anyone better!

    • @javaprogrammingmastery
      @javaprogrammingmastery 3 года назад +2

      codesnipeet.com/laravel-8-0-create-generate-slug-example/
      codesnipeet.com/laravel-8-0-form-validation-example/
      codesnipeet.com/laravel-8-0-ajax-form-validation-example/
      codesnipeet.com/laravel-8-0-image-upload-example/
      codesnipeet.com/laravel-image-validation-example/
      codesnipeet.com/how-to-create-a-custom-error-page-in-laravel-8-0/
      codesnipeet.com/laravel-8-0-clear-cache-of-route-view-config-command-example/
      codesnipeet.com/laravel-8-0-pdf-laravel-8-0-generate-pdf-file-example/
      codesnipeet.com/laravel-8-0-socialite-login-with-google-account-example/
      codesnipeet.com/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js/
      codesnipeet.com/laravel-8-0-resource-routing-example/
      codesnipeet.com/laravel-8-0-get-country-city-address-from-ip-address-example/
      codesnipeet.com/how-to-get-random-records-in-laravel/
      codesnipeet.com/laravel-get-next-previous-post/
      codesnipeet.com/create-dummy-data-using-laravel-tinker/
      codesnipeet.com/failed-to-create-laravel-project-solution100-working/

    • @lokinewborn3696
      @lokinewborn3696 3 года назад +1

      @@javaprogrammingmastery wow man, respect, THANKS A LOT .

  • @Stoney_Eagle
    @Stoney_Eagle 3 года назад +62

    Laravel is a joy to code with.
    Once you understand the MVC part of it it's super easy and fast to do anything you can imagine.

    • @javaprogrammingmastery
      @javaprogrammingmastery 3 года назад +5

      codesnipeet.com/laravel-8-0-create-generate-slug-example/
      codesnipeet.com/laravel-8-0-form-validation-example/
      codesnipeet.com/laravel-8-0-ajax-form-validation-example/
      codesnipeet.com/laravel-8-0-image-upload-example/
      codesnipeet.com/laravel-image-validation-example/
      codesnipeet.com/how-to-create-a-custom-error-page-in-laravel-8-0/
      codesnipeet.com/laravel-8-0-clear-cache-of-route-view-config-command-example/
      codesnipeet.com/laravel-8-0-pdf-laravel-8-0-generate-pdf-file-example/
      codesnipeet.com/laravel-8-0-socialite-login-with-google-account-example/
      codesnipeet.com/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js/
      codesnipeet.com/laravel-8-0-resource-routing-example/
      codesnipeet.com/laravel-8-0-get-country-city-address-from-ip-address-example/
      codesnipeet.com/how-to-get-random-records-in-laravel/
      codesnipeet.com/laravel-get-next-previous-post/
      codesnipeet.com/create-dummy-data-using-laravel-tinker/
      codesnipeet.com/failed-to-create-laravel-project-solution100-working/

    • @Stoney_Eagle
      @Stoney_Eagle 2 года назад

      @@shaynhacker5746 If you are a bit more specific, maybe I can help.

    • @Stoney_Eagle
      @Stoney_Eagle 2 года назад +2

      @@shaynhacker5746 I got started with laravel with his "Laravel from scratch" Playlist from 4 years ago.
      I just followed along and then started to create my own pages with the example.
      The basic gist is:
      You go to a route eg "/about" and the router asks the controller for what to do.
      The controller then grabs all the data: from the database based on your model(s), from storage, from an external source, or hard-coded and it passes it on to the view.
      The view takes that data and with your html markup builds the page and then send it back to the client.
      Take a not to large project you already have in vanilla PHP.
      Define all your routes in the web.php and send them to "{routeName}Controller"
      In that controller build all the data you need in your html and put that in the view function with "{routeName} View"
      The youtube channel Coders Tape has plenty of deep dive videos on specific items in laravel. 😉

    • @ambrosedavid4001
      @ambrosedavid4001 2 года назад +1

      @@Stoney_Eagle wow you really broke this down

    • @ambrosedavid4001
      @ambrosedavid4001 2 года назад

      @Stoney_Eagle i'm currently building a big project and it's my first time building with laravel. I would like to ask a few questions for guidance, please what's your email address so i can contact you if you dont mind

  • @furomin4272
    @furomin4272 3 года назад

    I was really looking forward to get an up to date Laravel course from Brad, but I must say this instructor is really really good and is explaining everything with precise detail. Respect and thumbs up!

  • @cobb208
    @cobb208 3 года назад +6

    Outstanding! You covered the same amount of information that other tutorials take ~10 hours.

  • @FacePlat3
    @FacePlat3 3 года назад +41

    Damn... This was the first web dev course I have ever finished watching and follow through and that makes me feel accomplished :)

    • @pallyweb
      @pallyweb 3 года назад

      Same here ;)

    • @tyrellwreleck4226
      @tyrellwreleck4226 2 года назад

      i know it's been almost a year, can you give the list of extensions used in this video? I think i'm missing snippets for css

  • @kachicelestine9659
    @kachicelestine9659 3 года назад +6

    Thank you sir for the nice and concise series in laravel 8.
    To avoid manual importation of classes, I use NameSpace Resolver extention(vscode).
    Other extensions that make laravel easy in VSCode include :-
    Laravel blade snippet
    Laravel snippet
    Laravel spacer

  • @shaikhalamin23
    @shaikhalamin23 3 года назад +2

    Alex was my first instructor to learn laravel in 2015. I am glad to see him at here

  • @jakke1975
    @jakke1975 2 года назад +1

    Thanks for another great tutorial.
    It is very condensed and a lot of theory is given... I'm always amazed these 1-2h videos keep me busy for days but I learn A LOT through them.

  • @ayyantariq321
    @ayyantariq321 3 года назад +3

    Waiting For This Crash Course. Thank You Soo Much Guyz!

  • @michaelo4u
    @michaelo4u 3 года назад +8

    Thank you so much for this Alex.
    Anyone who had this error: "Target class [App\View\Components\Post] does not exist", in the Blade Components part (02:06:49),
    then make sure you deleted the "View\Components\Post", and finally run "php artisan view:clear".

    • @amarjanovic989
      @amarjanovic989 3 года назад

      Thank you very much!

    • @stratos8320
      @stratos8320 2 года назад

      thank you

    • @Morgan-vz6oo
      @Morgan-vz6oo 2 года назад

      Thank you!

    • @ontheruntonowhere
      @ontheruntonowhere 2 года назад +1

      He got the same error in the vid at 2:09:07 but he didn't bother to explain it, he just edited it out. Thanks for your explanation.

    • @atrus3823
      @atrus3823 9 месяцев назад +1

      @@ontheruntonowhere Yeah, I noticed that too. There was a sneaky cut there. There is a visible refresh and the error appears and then it just cuts to it working XD. Thanks to @michaelo4u to showing the fix.

  • @marshallklickman
    @marshallklickman 3 года назад +1

    As a primarily front end dev who hasn't worked with Laravel for at least a year (and not on a regular basis for at least two years), this video is *exactly* what I was looking for. So amazing.
    I even created a "Laravel" list in my saved RUclips videos just for this. Excellent work, thank you so much.

  • @theUnemployedProgrammer
    @theUnemployedProgrammer 3 года назад

    Best crash course I've seen yet. Really helpful in terms of explaining how things actually work as opposed to giving template code as most "tutorials" do.
    Thanks very much!

  • @QuentinWatt
    @QuentinWatt 3 года назад +114

    Nice work Alex.

  • @abhijithj2366
    @abhijithj2366 3 года назад +13

    I remember when I was starting to learn PHP, it was from Alex's videos on TheNewBoston. Glad to see him again. Its been like 4 years.

    • @TraversyMedia
      @TraversyMedia  3 года назад +11

      Yeah, he's one of the OGs. I'm trying to get Bucky here as well :) Good to see he's back doing content

    • @codewithlek9134
      @codewithlek9134 3 года назад +5

      @@TraversyMedia please bring Bucky 💙

    • @sitharamadushan8729
      @sitharamadushan8729 3 года назад +1

      @@TraversyMedia It's nice if Bucky is here as well!

  • @edpogi7934
    @edpogi7934 3 года назад +2

    Just completed this course now (3 days learning). Thank you very much Traversy and sir Alex for very well precise explanation. I really learned a lot here, just right to my new work. God bless you there bro

  • @Idysman
    @Idysman 3 года назад +1

    Ah Traversy media Thanks!!!
    Alex thanks so much.
    Currently am learning Laravel and this will really be a great edge for me.
    I really appreciate the energy and synergy between you and Alex
    Thanks once again.

  • @ricardogilsimoes
    @ricardogilsimoes 3 года назад +6

    This course made my like php so much more! Thank you for your work!

  • @TheViPerBlackHawk
    @TheViPerBlackHawk 3 года назад +106

    I was hoping for an updated Laravel and it’s here 😆

    • @mweb7344
      @mweb7344 3 года назад +1

      Same, this is just awesome

    • @arielcuesta5520
      @arielcuesta5520 3 года назад +1

      Me too!! Perfect timing for my new project!!!

  • @24ronin
    @24ronin 2 года назад

    Best Laravel Tutorial i have ever come across. Saying this after going through so many paid and free MOOCS!! The flow and pace is just perfect to catch up, clear doubts and understand the framework. Thank You, Alex for making this tutorial, and thank you, Brad for uploading this in your wonderful channel. I wouldn't have known Alex if not for this episode.

  • @malithsenanayakentgl-1052
    @malithsenanayakentgl-1052 3 года назад +2

    That's one of the best courses on laravel. Thanks Alex and Brad... It was so informative...

  • @fadifindakly3850
    @fadifindakly3850 3 года назад +3

    What a great tutorial! Thank you for the huge effort you have put in it!!

  • @folkepalmqvist1620
    @folkepalmqvist1620 3 года назад +10

    Wait, is this Alex from phpacademy? Because of you I now work with my dream job in IT. Big thanks for all your work!

  • @agungeka9281
    @agungeka9281 3 года назад

    Thank you so much Alex, your course is really compact yet comprehensive!

  • @LongySchlongy
    @LongySchlongy 3 года назад +1

    Travery is really taking care of us developers hey. I learnt an older version of laravel from this channel and today I'm a well established full stack freelance web developer. Thank you Brad

  • @PixiiBomb
    @PixiiBomb 3 года назад +23

    If you're having an issue around @12:50 - @13:20 using "require('tailwindcss')" and then trying to run "npm run dev"
    -- Tailwind CSS 2.0 requires Laravel Mix version 6 (which is currently in a beta state)
    -- You can check which versions you have installed in the package.json file
    -- If you've noticed that Tailwind CSS version is 2 or higher and Laravel Mix is 5 or lower, you can try the following:
    0) You have already typed: require('tailwindcss') into the webpack.mix.js file
    1) In the terminal type: npm remove laravel-mix
    2) Terminal: npm install laravel-mix@^6.0.0-beta.14 --save-dev
    3) Optional Terminal (probably isn't necessary, but wont hurt): php artisan config:cache
    4) Terminal: npm install
    5) Terminal: npm run dev
    That should get you back on track

    • @31Tizi
      @31Tizi 3 года назад

      Thanks a lot - works great!!

    • @pokeedmund1016
      @pokeedmund1016 2 года назад

      Thanks for this! I was stuck on this for so long. Some other things to consider as of February 2022:
      Make sure to run: npx tailwindcss init to get the config file
      you might run into a .bashrc issue, in which case you have to download gitbash.
      Use gitbash to navigate to the root of your directory using `cd ~`
      You edit the .bashrc file using `code ~/.bashrc`
      Then append to that file:
      export PATH=$(echo "$PATH" | sed -e 's/:\/mnt[^:]*//g') # strip out problematic Windows %PATH%
      npm install
      npm run dev
      *EDIT* Actually, it still didn't work.
      I gave up and used bootstrap instead

  • @sinashariati4412
    @sinashariati4412 3 года назад +3

    This is a really nice tutorial love to see more on laravel & php & vue

  • @proandy4448
    @proandy4448 3 года назад

    This is not a crash course but a full tutorial for an absolute beginner. Many thanks ALEX! you are the best

  • @knotcircle2844
    @knotcircle2844 2 года назад

    I just finished this course today and I can now say, I'm ready to deep dive more in Laravel. Thank you Alex. This Laravel crash course is the most easy to follow video I have seen. Thanks also to Brad TraversyMedia for making this available. Deserves a million likes

  • @pacholskigaming8699
    @pacholskigaming8699 3 года назад +5

    WOAH. THIS IS EXACTLY WHAT I WAS LOOKING FOR

  • @robiparvez
    @robiparvez 3 года назад +23

    alex is the first teacher that helped fall in love with laravel. He is concise and most importantly always maintains structure.

  • @brandymedia
    @brandymedia 3 года назад

    Amazing content - thanks Alex. I've been building with Laravel for a few years and this really helped me further cement my all round knowledge.

  • @fablyinspirations7783
    @fablyinspirations7783 3 года назад

    Amazing!!!. I have been developing with Laravel for the past 4years but have not created any completeproject with laravel8 yet, this is a great refresher!!. Thank you Alex!, Thank you Brad!!

  • @chrisplusplus6232
    @chrisplusplus6232 3 года назад +13

    If php/laravel topics are regularly posted in this channel, there will be no conspiracy theory of php being obsolete, this can be huge contribution and support from brad.

  • @deepeshdhakal7476
    @deepeshdhakal7476 3 года назад +3

    I recently followed the laracast's "laravel from scratch" for beginners and watching this one is really taking my understanding to the next level. All the gratitude, love and best wishes from Nepal to this channel and its authors.

  • @miteshnile7350
    @miteshnile7350 3 года назад +1

    You are great! I was struggling starting with Laravel and MVC but you made everything so clear! I feel empowered now B) ! Thank you Alex!

  • @mariuspanaitescu7352
    @mariuspanaitescu7352 2 года назад

    Big big like. It's incredible how much info you squeezed in 2.5 hours. Thank you!

  • @manlioguitar
    @manlioguitar 3 года назад +5

    If you guys have any issue with the below line:
    auth()->attempt($request->only('email', 'password'));
    Replace it with the below code:
    // Import Auth:
    use Illuminate\Support\Facades\Auth;
    // Apply the fix
    $credentials = $request->only(['email', 'password']);
    Auth::attempt($credentials);

    • @cowdickerson8102
      @cowdickerson8102 3 года назад +1

      I have an issue with bad method call from the validate at 34 min in. BadMethodCallException
      Method App\Http\Controllers\auth\RegisterController::validate does not exist.
      any ideas?

    • @TheAzeyHD
      @TheAzeyHD 3 года назад

      Thanks a lot!

    • @nnamanibenjamin5093
      @nnamanibenjamin5093 2 года назад

      Am still getting null as I dd(auth()->user()); in my dashboard controller

    • @andrewabwango8965
      @andrewabwango8965 2 года назад

      @@nnamanibenjamin5093 Faced the same issue and solved it by hashing the password before creating or registering the user. It was showing null because if the password in the database is not hashed, the attempt method will always fail because passwords will never match.
      This is the fixed section in my code and it worked;
      $password = Hash::make($request->password);
      // store user with user model and create method
      User::create([
      'name'=> $request->name,
      'username'=> $request->username,
      'email'=> $request->email,
      'password'=> $password,
      ]);
      auth()->attempt($request->only('email', 'password'));
      return redirect()->route('dashboard');

  • @yungifez
    @yungifez 3 года назад +13

    Me when i started : oh wow laravel
    Me at 1 hour : i am one with the laravel documentation, i have been reading it like a textbook

  • @KKVinayKumar
    @KKVinayKumar 2 года назад

    Alex Garrett is my hero. Before watching his video I was having hard time understanding Laravel. But after watching his video and working on few examples, I found Laravel understandable. Thank you Alex.

  • @saurabhjindal8318
    @saurabhjindal8318 3 года назад

    Awesome video...I'm node developer and I haven't worked on php in the last 6-7 years....I was blown away by the maturity of the framework

  • @ralphtolipas9867
    @ralphtolipas9867 3 года назад +46

    Nostalgic! Started in PHP Academy, here is where I learned British accent before Peppa Pig 😅

    • @raik303
      @raik303 3 года назад +2

      Same here nostalgic! 😄
      I started learning php from Alex, code academy the year between 2014 and 2016.

    • @ralphtolipas9867
      @ralphtolipas9867 3 года назад +1

      @@raik303 same here, using notepad ++ LOL

  • @droneArt714
    @droneArt714 3 года назад +6

    If you make a mistake on routing or in view components use this:
    php artisan route:clear
    php artisan view:clear

    • @kurshadqaya1684
      @kurshadqaya1684 3 года назад +1

      You saved me from wasting my time! Thank you!

  • @rickybarabba7866
    @rickybarabba7866 3 года назад +1

    Valuable content from Alex Garrett Smith. It covers anything you need to get started with Laravel and Tailwind and even beyond that...

  • @mohammedhamza2123
    @mohammedhamza2123 3 года назад +1

    to be honnest, you deserve a medal for that crash course, for beginners like me it looks like a treasure

  • @mtshgaming292
    @mtshgaming292 3 года назад +23

    Am i dreaming laravel crash course in traversy media damn it makes my life easier

    • @javaprogrammingmastery
      @javaprogrammingmastery 3 года назад

      codesnipeet.com/laravel-8-0-create-generate-slug-example/
      codesnipeet.com/laravel-8-0-form-validation-example/
      codesnipeet.com/laravel-8-0-ajax-form-validation-example/
      codesnipeet.com/laravel-8-0-image-upload-example/
      codesnipeet.com/laravel-image-validation-example/
      codesnipeet.com/how-to-create-a-custom-error-page-in-laravel-8-0/
      codesnipeet.com/laravel-8-0-clear-cache-of-route-view-config-command-example/
      codesnipeet.com/laravel-8-0-pdf-laravel-8-0-generate-pdf-file-example/
      codesnipeet.com/laravel-8-0-socialite-login-with-google-account-example/
      codesnipeet.com/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js/
      codesnipeet.com/laravel-8-0-resource-routing-example/
      codesnipeet.com/laravel-8-0-get-country-city-address-from-ip-address-example/
      codesnipeet.com/how-to-get-random-records-in-laravel/
      codesnipeet.com/laravel-get-next-previous-post/
      codesnipeet.com/create-dummy-data-using-laravel-tinker/
      codesnipeet.com/failed-to-create-laravel-project-solution100-working/

  • @SoliasSerene
    @SoliasSerene 3 года назад +36

    When the presenter right-clicked and chose "import class" for the "Hash" facade @41:31, what plugin/extension gave VS code that ability?

    • @gsvf
      @gsvf 3 года назад +43

      I found it! The name is PHP Namespace Resolver

    • @NikhilPatil4u
      @NikhilPatil4u 3 года назад

      @@gsvf Thanks For Help

    • @kennethkipchumba2532
      @kennethkipchumba2532 3 года назад

      That also gave me some trouble trying to figure out.

    • @MrRoubleh
      @MrRoubleh 3 года назад

      @@gsvf thanks man

    • @noahbar-shain4218
      @noahbar-shain4218 3 года назад

      @@gsvf I was looking all over for this! Thank you for finding it!!!
      @Solias Serene Thank you for asking the question

  • @Aleksandaaar
    @Aleksandaaar 3 года назад +1

    This is nice, updated when needed. Great job man, great !

  • @Dennis-pc1vv
    @Dennis-pc1vv 3 года назад

    Your teaching style really shows how great Laravel is!!
    Well done 👍👍👍

  • @vedam7949
    @vedam7949 3 года назад +18

    I think its missing something at 02:09:09, didn't mentioned how you fixed the "Target class [App\View\Components\Post] does not exist" error

    • @Domc360
      @Domc360 3 года назад +20

      I think I've found the problem. When you delete Post component file, you have to save again both index.blade.php files in users/posts and posts view folders, even if you have not made any changes prior deleting Post component.

    • @Bebe-sg4mg
      @Bebe-sg4mg 3 года назад

      @@Domc360 thanks alot

    • @TGDTom
      @TGDTom 3 года назад +1

      @@Domc360 Thanks dude! Was literally stuck on that for half an hour lol

    • @rawhasan1180
      @rawhasan1180 3 года назад

      @@Domc360 Thanks, buddy! Save the life!! Was dying to sort it out.

    • @migueldemaria3830
      @migueldemaria3830 2 года назад

      @@Domc360 saved my life, thanks!

  • @henkprinsloo1743
    @henkprinsloo1743 3 года назад +6

    Wow - I want to take your course on codecourse.com but man - you go SO fast through some things...with very little explanation. Thank you anyway for the content.

    • @Venezuelangel
      @Venezuelangel 3 года назад

      Yeah, in late 2020 I finished a Laravel app that would run nationwide in Argentina, and I still get confused by this guy. I don't know if it's some ego thing were he wants to prove how fast he can code, but it sucks to get stuck somewhere and spend two hours looking at the same 10 minutes in a video. I would never subscribe to this guy

  • @shankerm3959
    @shankerm3959 3 года назад +1

    Something that i have been looking out for, for a long time. Excited to start.

  • @rnilu86
    @rnilu86 3 года назад +2

    Wow. Nice to hear from Alex after a long time. Alex and Bucky are my earliest youtube Gurus. :)

  • @kenpeters1009
    @kenpeters1009 3 года назад +10

    Am a simple guy i see traversy media upload i click

  • @k.von.
    @k.von. 3 года назад +5

    Thank you for the great intro Laravel. I was wondering which client side database interface you're using in the video (at the 20:30 mark)?

    • @JChristoph
      @JChristoph 3 года назад +1

      I was curious about that as well.

    • @martinhl1
      @martinhl1 3 года назад

      Seems to be TablePlus :)

    • @kamrulahsan06
      @kamrulahsan06 2 года назад

      It is postico

  • @maksymdudyk1718
    @maksymdudyk1718 3 года назад

    Thank you, Brad, for bringing such a course on your channel.

  • @davidfrank-oziwo9836
    @davidfrank-oziwo9836 3 года назад +2

    This is awesome! Been working on learning laravel for a while now..

  • @dukewilliams6142
    @dukewilliams6142 3 года назад +13

    please do a course with laravel - jetstream.

    • @javaprogrammingmastery
      @javaprogrammingmastery 3 года назад

      codesnipeet.com/laravel-8-0-create-generate-slug-example/
      codesnipeet.com/laravel-8-0-form-validation-example/
      codesnipeet.com/laravel-8-0-ajax-form-validation-example/
      codesnipeet.com/laravel-8-0-image-upload-example/
      codesnipeet.com/laravel-image-validation-example/
      codesnipeet.com/how-to-create-a-custom-error-page-in-laravel-8-0/
      codesnipeet.com/laravel-8-0-clear-cache-of-route-view-config-command-example/
      codesnipeet.com/laravel-8-0-pdf-laravel-8-0-generate-pdf-file-example/
      codesnipeet.com/laravel-8-0-socialite-login-with-google-account-example/
      codesnipeet.com/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js/
      codesnipeet.com/laravel-8-0-resource-routing-example/
      codesnipeet.com/laravel-8-0-get-country-city-address-from-ip-address-example/
      codesnipeet.com/how-to-get-random-records-in-laravel/
      codesnipeet.com/laravel-get-next-previous-post/
      codesnipeet.com/create-dummy-data-using-laravel-tinker/
      codesnipeet.com/failed-to-create-laravel-project-solution100-working/

  • @VikasJo
    @VikasJo 3 года назад +6

    I thought i will go to watch horror movie, but i changed my mind.. Thank you for both :)

  • @noahbar-shain4218
    @noahbar-shain4218 3 года назад

    This is a fantastic tutorial. He does a good job explaining step by step how to do everything, and I was able to follow along (with a lot of pausing) and build on my machine exactly what he demonstrating.

  • @fadifindakly3657
    @fadifindakly3657 3 года назад

    This is another great Laravel tutorial. Thank you Alex and Brad!

  • @mudso
    @mudso 3 года назад +5

    14:18 As of Nov 23, 2020: if you encounter the 'npm run dev' or 'npm run watch' and it gives you an error saying Error: PostCSS plugin tailwindcss requires PostCSS 8.
    Run the following commands:
    npm uninstall tailwindcss postcss autoprefixer
    npm install tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

  • @hostname47
    @hostname47 3 года назад +3

    This course is not for beginners ! thanks

  • @kevinnacario359
    @kevinnacario359 3 года назад +2

    Thank you so much! This channel is proven to be fastest way to get on track.

  • @rawhasan1180
    @rawhasan1180 3 года назад +2

    Thank you so much for giving this awesome Laravel 8 course for free when any good Laravel 8 tutorial is hard to find on RUclips or even on Udemy! I would like to sign up for your courses if you release some updated Laravel 8 courses. It looks like there are mostly old version courses on your site.
    Thanks a million for teaching this lot in this short time! I now have a good understanding of Laravel to get me started.

  • @MrSiamtea
    @MrSiamtea 3 года назад +5

    I'm following everything as video but stuck at 2:09:07 , After deleting Post.php, there is an error, I think Alex skipped the fix in the video. Anyone can help me please..
    Error : Target class [App\View\Components\Post] does not exist.

    • @alrifay
      @alrifay 3 года назад +9

      Run this command to delete view cache.
      php artisan view:clear

    • @MrSiamtea
      @MrSiamtea 3 года назад +1

      @@alrifay Thanks a lot. It's working 👍🏻👍🏻

    • @NazmulHo1971
      @NazmulHo1971 3 года назад +1

      ​@@alrifay Thanks! It happened to me too.

    • @jgonsuron
      @jgonsuron 3 года назад +1

      @@alrifay Thanks for the save!

    • @justicetout
      @justicetout 3 года назад

      @@alrifay THANK YOU !

  • @rjchhetri2370
    @rjchhetri2370 3 года назад +6

    Give me a heart sir brad

  • @elvisboateng5752
    @elvisboateng5752 3 года назад

    I love this video. It covers almost everything a beginner needs to know. Thank you.

  • @jgonsuron
    @jgonsuron 3 года назад

    Really good course. I signed up for your yearly package on Code Course. Looking forward to learning more!

  • @AyomideIruobe
    @AyomideIruobe 3 года назад +11

    I am having issues with "npm run dev" after Adding /
    Including Tailwind in my CSS.. I get this ERROR Failed to compile with 2 errors. what do i do?

    • @AyomideIruobe
      @AyomideIruobe 3 года назад +14

      So I found a solution to my problem and felt i should share it, anyone having that issue should Install Tailwind and its peer-dependencies using npm and run " npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9 "
      after this you can then run " npm run dev "

    • @ryantheghost2185
      @ryantheghost2185 3 года назад +1

      @@AyomideIruobe yes.Its best to first uninstall the whole thing then do this.The code is from the official doc of tailwind

    • @Tube-hn9rc
      @Tube-hn9rc 3 года назад +2

      @@AyomideIruobe Wow Thanks You saved my life good brother for the reply

    • @dezareo
      @dezareo 3 года назад

      I've got same problem, and this solution work fine for me dev.to/robertobutti/how-to-install-tailwind-css-2-with-laravel-8-4bom

    • @GrahamSmart
      @GrahamSmart 3 года назад

      @@AyomideIruobe Gah, annoyingly this didnt fix it for me :( still no luck after hours of research, ive given up.

  • @devgeorgejr9623
    @devgeorgejr9623 3 года назад +5

    For those of you that encountered the error when running npm run dev after adding tailwind.
    Check out this link: tailwindcss.com/docs/installation#post-css-7-compatibility-build
    npm uninstall tailwindcss postcss autoprefixer
    npm install tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

  • @codewithlek9134
    @codewithlek9134 3 года назад +2

    Couldn't ask for a better tutorial 🙏🙏🙏 (thank you both)

  • @MrL22
    @MrL22 3 года назад

    Great tutorial. I come from a bespoke, writing from scratch background pulling in composer packages like illuminate\database, carbon, etc so I have quite good experience using the Laravel query builder externally. I started to get lost around the "Eagar loading" section so I may have to come back to this a few times once I get used to the basics. Thank you!

  • @MuhammadSaaddev
    @MuhammadSaaddev 2 года назад +6

    for those who are stuck on tailwindcss error,
    please make sure that you're using laravel-mix version 6 or higher.
    if in case you're using version 6 or higher and still getting the tailwind error then do the following :
    first uninstall the tailwind :
    npm uninstall tailwindcss
    then reinstall like this :
    npm install -D tailwindcss postcss autoprefixer
    then run the following command :
    npx tailwindcss init
    considering you already wrote require tailwindcss in webpack, only thing left to do is this :
    npm run dev
    You're good to go ! =)

  • @jaroslavr2270
    @jaroslavr2270 3 года назад +4

    For me auth()->attempt is not working, I have to use Auth::attempt() Any idea?

    • @tanvirhasan6423
      @tanvirhasan6423 3 года назад

      same, for me it's not working

    • @martinmtandi335
      @martinmtandi335 3 года назад

      same with me

    • @manlioguitar
      @manlioguitar 3 года назад +1

      If using the below doesn't work:
      auth()->attempt($request->only('email', 'password'));
      This should fix your issue:
      $credentials = $request->only(['email', 'password']);
      Auth::attempt($credentials);
      PS: remember to import the following:
      use Illuminate\Support\Facades\Auth;

    • @tanvirhasan6423
      @tanvirhasan6423 3 года назад

      @@manlioguitar yeah that fixes the error but still my user isn't authenticated or signed in. my users can register, their data stored in the database but still cannot login or when i checked dd() in dashboard, it doesn't give be user details

    • @manlioguitar
      @manlioguitar 3 года назад

      ​@@tanvirhasan6423 without seeing your code I cannot tell you exactly what's the issue, but I had one as well this is the code I have for the LoginController:
      // import
      use Illuminate\Support\Facades\Auth;
      // code
      public function store(Request $request)
      {
      $this->validate($request, [
      'email' => 'required|email',
      'password' => 'required',
      ]);
      $credentials = $request->only(['email', 'password']);
      if(!Auth::attempt($credentials)){
      return back()->with('status', 'Invalid login details');
      }
      return redirect()->route('dashboard');
      }

  • @Surroundize
    @Surroundize Год назад

    Comprehensive Laravel course. Thank you so much Alex!

  • @alejandrovillanueva4562
    @alejandrovillanueva4562 3 года назад +1

    It's one of the best laravel courses I've ever seen. I hope you publish a second part

  • @madjedsolt5878
    @madjedsolt5878 3 года назад +3

    First comm. Greetings from Algeria. Can I be able to code in less than one year?!

    • @Ibenyeugbala
      @Ibenyeugbala 3 года назад +3

      Yea, definitely... consistency and the will is key

    • @jorgea.garzav4650
      @jorgea.garzav4650 3 года назад

      Knowing no PHP or MySQL at all, and knowing almost nothing of javascript and some html, I learned PHP-My in a couple months, and made my first real project after about 6 months. With pure PHP, worst of all, in dreamweaver, a real pain to code (then I started using notepad++, a real beauty), but no laravel or cake, no jquery, no bootstrap, *no Traversy*, no nothing, just the year 2001, buying a domain was a nightmare, hosting was way more expensive, ADSL was a real crap, and kazaa was my spotiflix. I started learning Laravel like a month ago and I have like 6 exercises finished

    • @cowdickerson8102
      @cowdickerson8102 3 года назад

      wesh khoya?

  • @tubun09
    @tubun09 3 года назад +3

    this should be paid course, Alex
    (thank god this is not codecourse)

  • @kk2070464
    @kk2070464 3 года назад

    Thanks Alex, your explanation is so clear and understandable to follow.

  • @tamnguyen1249
    @tamnguyen1249 3 года назад

    Everything in this tutorial has been nicely presented. Amazing !

  • @pasizdobrekuce
    @pasizdobrekuce 3 года назад +5

    It is such a rarity these days to hear proper English language in software development community.

  • @harryhino2267
    @harryhino2267 3 года назад +4

    This IS NOT a video for beginners. I am struggling to follow his talking, let alone what he is doing. This needs to be split into a video series so he can SLOW down and explain EXACTLY what he is doing. My quest for a simple "laravel for newbies" video continues.

    • @collectorX
      @collectorX 7 месяцев назад

      there's another crash course done in the channel which might prolly be easier for u..goodluck

  • @MarksTechVlogs
    @MarksTechVlogs 3 года назад

    Having only ever very slightly dipped my toe in the water with Laravel before this was incredibly helpful...although a little too fast to follow along! Thanks for creating it

  • @revraitah
    @revraitah 3 года назад

    Thank you so much for this tutorial. I really need a refresher and this tutorial in particular not only fullfilled that but I also learn new things about Laravel, thank you.

  • @RenatoMartodimedjo
    @RenatoMartodimedjo 3 года назад

    Great tutorial! Wanted to learn Laravel for a project and this is exactly what I needed.

  • @migueldemaria3830
    @migueldemaria3830 2 года назад

    Thanks for this incredible tutorial, Alex and Brad!

  • @ghouston2712
    @ghouston2712 3 года назад

    Fantastic resource. Thank you Alex and Brad

  • @AsankaRubasinghe
    @AsankaRubasinghe 3 года назад

    Thanks a lot my fav. lecturer. I was waiting for this L8 tutorial. Awesome!!!

  • @thesoftwarepimpgma
    @thesoftwarepimpgma 11 месяцев назад

    this one single video has taught me laravel from start to " i know how this page works " thank you, amazing tutorial

  • @venancep5733
    @venancep5733 3 года назад +2

    Wow! I see Mr Garreth and Travesy. Thank you very much my amaizing, wonderful and great tutors :)

  • @mouazfmb
    @mouazfmb 2 года назад

    Traversy Media and Alex, Thanks for both of you .

  • @peksonholinificent7056
    @peksonholinificent7056 2 года назад

    Apart from a cool voice, Alex is a god-level developer...Started watching this video last month...and am not even half way through. So much to chew on. Great content!

  • @isaackash2401
    @isaackash2401 2 года назад

    This video makes fall in love of Laravel. Thanks much for that.

  • @MattiaMalonni
    @MattiaMalonni 3 года назад

    By far one of the best tutorial.. even is based on php, a language that I really don’t like, you explained it so well.. thank you man :)

  • @VOCASTGAMING
    @VOCASTGAMING 3 года назад +2

    Thanks for the recap! Learned some new stuff 👍

  • @liteninkiran
    @liteninkiran 3 года назад

    This is a really awesome course. Thank you for putting it together.