Laravel PHP Framework Tutorial - Full Course for Beginners (2019)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 2.5K

  • @paul_kapela
    @paul_kapela 3 ปีที่แล้ว +231

    Hello, I've done this tutorial few months ago and now I'm building an entire commercial website. Thank you very much!

    • @Gszada
      @Gszada 3 ปีที่แล้ว +6

      that's impressive.. so I can assume this course is good... thanks for the hype..

    • @femi287
      @femi287 ปีที่แล้ว

      Hello, please how did you get past th-cam.com/users/clipUgkx27iYB3x-keq0qpxVeHoMLlwTi0y_0JYY

    • @Stevenbensonofficial
      @Stevenbensonofficial ปีที่แล้ว

      How are you doing now

    • @Adambernaiou1921
      @Adambernaiou1921 6 หลายเดือนก่อน

      did you learn laravel only from this tutorial ?

    • @КостяКиндалюк
      @КостяКиндалюк 5 หลายเดือนก่อน

      @@Adambernaiou1921 Of course not. Documentation, other tutorials, and much more. You can't build a commercial website with all important features if you just have a muscle memory of how to build Instagram clone

  • @fancyAlex1993
    @fancyAlex1993 5 ปีที่แล้ว +616

    Just finished the whole project. For anyone who is starting this project and you are wondering if it is worth it ? It is 100 % worth it , I attended an interview last week that required the candidate to know Laravel , at this point of time, I only had 3 weeks experience in Laravel and I did show them an incomplete version of this project. Long story short , I got an offer from them to join the company.
    Update Dec 2020: I never received any notifications from this comment. Hence I apologize for not replying your comments. I still work as web dev mainly in Laravel & Vue & Angular. Currently due to MCO, many companies are hiring for Laravel Devs in my country, hence creating a linkedin profile would be very helpful for you to get jobs. Hope this motivates someone who is doing and watching this tutorial.

    • @angelamolina5599
      @angelamolina5599 5 ปีที่แล้ว +9

      Wow Congratulations to you !

    • @juliom6260
      @juliom6260 5 ปีที่แล้ว +21

      Congrats. I have an interview in 5 days. Wish me lucky 😉

    • @abisake16
      @abisake16 5 ปีที่แล้ว +5

      Julio M good luck bro

    • @Rip_pirel
      @Rip_pirel 5 ปีที่แล้ว +4

      Glad to hear that. Good job bro.

    • @Adbal99
      @Adbal99 4 ปีที่แล้ว +1

      How's going bro after few months? I have just started learning laravel and i am curious :D

  • @ladenbin
    @ladenbin 3 ปีที่แล้ว +64

    I legit have a job now because of this single video. You saved me and my family's life. Thank you so much.

    • @braydonthepirate
      @braydonthepirate 3 ปีที่แล้ว +28

      What an inspiring comment from Bin Laden lol

    • @mostnotoriouspinpin7581
      @mostnotoriouspinpin7581 3 ปีที่แล้ว +18

      i guess they didn't kill you....atleast you're trying to make an honest living man

    • @ladenbin
      @ladenbin 3 ปีที่แล้ว +12

      Times have changed my friends.

    • @michallev5339
      @michallev5339 2 ปีที่แล้ว

      😲

  • @rojasern
    @rojasern ปีที่แล้ว +10

    It's 2023 and I got a job as a Laravel Backend Developer thanks to this video!!!!

    • @Armando-px8hi
      @Armando-px8hi ปีที่แล้ว +4

      Congrats man, hoping to do the same.

  • @mansoorburdi2313
    @mansoorburdi2313 5 ปีที่แล้ว +84

    The best tutorial to learn Laravel. He define everything he uses in code and he teaches alot in just one go.
    Thank you for teaching us sir.

    • @rickpineda7377
      @rickpineda7377 4 ปีที่แล้ว +4

      Yep, unlike the others. Don't get me wrong, we appreciate other tutorials but this guy explains everything he writes. Really helps newbies understand the framework

    • @m.m.4609
      @m.m.4609 2 ปีที่แล้ว +3

      except this tutorial is already outdated and some commands mentioned here are not available (make:auth for example) and also the installation of laravel/composer differs widely, which is a very important part that this tutorial is missing.

  • @djdeleon_
    @djdeleon_ 2 ปีที่แล้ว +13

    TH-cam's algorithm takes me back to this video. After learning programming consistently, now I became a Software Developer. It all started from this video. Thanks again Sir Victor.

  • @benjaminshpigler9613
    @benjaminshpigler9613 5 ปีที่แล้ว +89

    Can't stop watching... makes you feel like a wizzard... even when you just follow the steps of the master ;-)

    • @dynobird
      @dynobird 3 ปีที่แล้ว

      Hi...
      We develop online database designer for web developer. We hope we can make easy your work with DynoBird.com
      If you are interested. Contact US for free credits or ask more question.
      Thanks.

    • @pixessence7114
      @pixessence7114 3 ปีที่แล้ว

      Hehehehe my sentiments exactly

    • @CODINGISEASY
      @CODINGISEASY 2 ปีที่แล้ว

      its a great course

  • @mikegoodsell2796
    @mikegoodsell2796 5 ปีที่แล้ว +19

    This is perhaps the best tutorial of any kind I have ever seen. I don't know if it's because I was impressed with Laravel's functionality, or the instructor's delivery. Maybe a combo of both. Everything worked, and everything was clear and concise. It was jam-packed with information, and took me 3 days to get through, and will probably take me another month to fully understand, but, as a tutorial, I was able to understand and follow everything being said and my results matched the instructors. Many real world issues were touched on. The only issues I had on my end was the new auth() functionality, which someone else mentioned. Additionally, I was not using PHPStorm, so, in a couple of places use paths were added within the tutorial that were not automatically added in mine - However, since everything else was so concise, I was able to debug without much issue. All in all, an exceptional beginning course. Five stars. Thank you.

  • @UnderTheGoldenGate
    @UnderTheGoldenGate 11 หลายเดือนก่อน +2

    This video saved my project! Thank you so much. I spent weeks trying to find a book or docs on how to get started with Laravel (like you would expect with a "For Dummies" book complete with working examples), but everything I found didn't have working examples, or wandered around in circles, or gave snippets of examples none of which works. Out of desperation I came to TH-cam and found this video.
    I was able to start from scratch and work through this video in less than a week, and within a few days I have my prototype up and running. I never used Laravel before, only had a little bit of PHP experience. Awesome!

  • @lucasvieira7202
    @lucasvieira7202 4 ปีที่แล้ว +35

    I'm still at 1:30:00 of the course, but man... I'm really appreciating it and I want to thank you for this absolutely amazing material. Have recommended for all my friends who wants to learn Laravel. For real, thanks for this marvelous course.

    • @lucastvms
      @lucastvms 2 ปีที่แล้ว

      @@androidbox6876 I think he was aiming for the Node Package Manager (npm) that comes with NodeJS. Since it can manage packages beyond those related to NodeJS itself. 👍

  • @icebeardoesnttalkmuch8919
    @icebeardoesnttalkmuch8919 5 ปีที่แล้ว +13

    Free code camp has to be the best site for learners
    these guys put courses for free that you cant get unless you pay heavily for them
    You guys are just awesome.

  • @DiegoSayron
    @DiegoSayron 4 ปีที่แล้ว +393

    *### FIX ISSUES ###*
    *FIX/TIP (**4:15**) - echo $PATH* does not work under windows (prompt). Instead, you must try just "path" (remove the quotations) on cmd/prompt.
    *FIX (**9:38**)* - ERROR "Could not open input file: artisan" when run "php artisan serve": As he said, we must run this command *inside* the project folder.
    *FIX (**11:45**)* - make:auth works only on Laravel 5.8 and older versions.* The newer version, try:
    1. composer require laravel/ui
    2. php artisan ui vue --auth
    3. npm install && npm run dev
    *FIX (**22:00**) - If you try to use "vim" over Windows cmd:* for Windows users, "vim" should not works. So, being at the project folder, try: copy con database\database.sqlite (press enter, so F6 then, enter again). It will create the file with nothing inside. METHOD 2: re-create this file using a different method, like (under windows os) right-click on the project folder, "create new text file" (but rename the extension txt to sqlite!) and rename it to database.sqlite
    *FIX (**23:35**) -* console echoes for php artisan migrate: *"Could not find driver (SQL: PRAGMA...":* Just open php.ini and uncomment extension=pdo_sqlite (or extension=pdo_mysql if you use it).
    If this error persists, even after uncommenting extension=pdo_sqlite, with PHP Warning "PHP Startup: Unable to load dynamic library 'pdo_sqlite'". Try fix that by typing:
    sudo apt-get install php7.4-sqlite
    (Thanks to @Sjors Peterse)

    • @sohelakhtar8044
      @sohelakhtar8044 4 ปีที่แล้ว +7

      This is what i was searching for
      I have stuck in vim error
      Thanks

    • @anasanchezsanchez9513
      @anasanchezsanchez9513 4 ปีที่แล้ว +4

      Thanks so much. I had all three problems and that fixed them all :)

    • @ianujrawat
      @ianujrawat 4 ปีที่แล้ว

      Can you please explain the third error briefly ? How to do it ?

    • @DiegoSayron
      @DiegoSayron 4 ปีที่แล้ว +2

      @@ianujrawat I assume you know where is and how to open to edit the PHP.ini file, okay?
      When that 3rd specific error appears to us, it means that you must scroll all lines of this file and find the line that has this content: ;extension=pdo_sqlite
      And you must delete all the characters - in this line - before the "extension" word (I don't remember if it is a ";" or a "#" (this character, in some configurations files, like php.ini, means that the software must not read this line of setting).
      If there is no character before it, it means that this line will be considered and the setting described in this line will be loaded when application starts (PHP, Apache...)
      So, when you change something on it, you must restart the service of your server to take changes (Apache, IIS, it depends on how web server you have installed. I guess you have Apache).
      Also, if you use for this project not sqlite, but MySQL, for exemple, the line you have to uncomment (removing ";") is not pdo_sqlite but pdo_mysql.
      Do I forget something or don't reach your question? Feel free to tell us here.

    • @ianujrawat
      @ianujrawat 4 ปีที่แล้ว +1

      @@DiegoSayron thanks alot my problem is solved now. Also i have checked you channel it is great

  • @prakashmandal1850
    @prakashmandal1850 2 ปีที่แล้ว +95

    11:47
    You have to use php artisan ui:auth instead of php artisan make:auth . Before using that you have to install new dependencies by calling composer require laravel/ui --dev in the current directory.

    • @mantoyib6340
      @mantoyib6340 2 ปีที่แล้ว +1

      thanks man, you help me

    • @Victor-fq6lz
      @Victor-fq6lz 2 ปีที่แล้ว

      Thanks a lot!

    • @nemanjastojanovic7497
      @nemanjastojanovic7497 2 ปีที่แล้ว +9

      It's better to use this command: composer require laravel/ui ..... than > php artisan ui bootstrap --auth .... than > npm install ..... it will be the same thing as in tutorial 👍😀😀👍

    • @mehdimedjahed604
      @mehdimedjahed604 2 ปีที่แล้ว

      Thanks!!

    • @ouidadelhirech6066
      @ouidadelhirech6066 ปีที่แล้ว

      @@nemanjastojanovic7497 thanks

  • @DiegoSayron
    @DiegoSayron 4 ปีที่แล้ว +7

    You rock, Man! You made I fall in love to PHP + Laravel after 32 years programming in client-server languages.
    I must continue my studies at 38:23

  • @Michael-lo3ht
    @Michael-lo3ht 8 หลายเดือนก่อน

    Finally. A clear, fluent speaker at the right speed. Believe me, it's been challenging. Thanks. I look forward to this.

  • @cedricreed890
    @cedricreed890 5 ปีที่แล้ว +12

    OMG! Thank you for this Tutorial, i have been going back and forth with learning Laravel, since the first time I tried to get it loaded, from NPM to Composer and nothing was working for me and I couldnt get Laravel loaded. So after a couple of months of getting up to speed with more PHP and command lines I came across this video and within the first 25Mins I had Laravel loaded and up and running. You ROCK Man!! Thank you for expertise sir, very much appreciated.

    • @CodersTape
      @CodersTape 5 ปีที่แล้ว

      That's GREAT GREAT news! Stick with it, it is well worth it.

  • @jrbcrypted6642
    @jrbcrypted6642 5 ปีที่แล้ว +312

    if "php artisan make:auth" doesn't work in your version of Laravel,
    try these 3 commands one after one in your project folder:
    1. composer require laravel/ui
    2.php artisan ui vue --auth
    3.npm install && npm run dev

    • @xMatthew2013x
      @xMatthew2013x 5 ปีที่แล้ว +5

      U can also build a project with old version by comend: composer create-project laravel/laravel nazwa "5.8.*"

    • @jamilxt
      @jamilxt 5 ปีที่แล้ว +2

      Thank you! my project was missing the vue auth-ui because of not doing the second command. ^_^

    • @matthewlee112
      @matthewlee112 5 ปีที่แล้ว +6

      we need to make this top comment... until another version changes this from being correct

    • @erroashivudhi7713
      @erroashivudhi7713 5 ปีที่แล้ว +1

      I dont know which one made it work but thanks Jafar

    • @sirmiles1820
      @sirmiles1820 5 ปีที่แล้ว +1

      i recommend this

  • @manishfoodtechs
    @manishfoodtechs 5 ปีที่แล้ว +864

    In Laravel 6.0 make:auth no longer exists:php artisan make:auth ( which works for Laravel 5.8 and older versions )
    Solution:
    Run :composer require laravel/ui
    php artisan ui:auth
    You can also generate the views only with:
    php artisan ui:auth --views

    • @kebapetsengakane8471
      @kebapetsengakane8471 5 ปีที่แล้ว +18

      Whoa! Thank you so much. You are a life saver!!! Worked just like that. Had spent 3 hours + tinkering until I came across your comment.

    • @Tennyson999
      @Tennyson999 5 ปีที่แล้ว +11

      The files generated won't have any CSS applied

    • @kokoyroy
      @kokoyroy 5 ปีที่แล้ว +15

      @@Tennyson999 Please run "npm install && npm run dev" to compile your fresh scaffolding.

    • @Tennyson999
      @Tennyson999 5 ปีที่แล้ว +1

      @@kokoyroy I figured out after following the documentation. But I also added both the php artisan ui vue and php artisan ui react and its --auth. Is it necessary to use both?
      Was just following the Laracel documentation so not too sure

    • @kokoyroy
      @kokoyroy 5 ปีที่แล้ว

      @@Tennyson999 they are frameworks for the frontend. they do the same job. choose the one u love most

  • @vincentkhamala5386
    @vincentkhamala5386 4 ปีที่แล้ว +2

    am so impressed as a young developer who's still in school, i followed this tutorial and i really built something amazing. thanks to Victor you're really awesome. thanks so much

  • @jazzlevit
    @jazzlevit 4 ปีที่แล้ว +26

    This is best education video I've even seen lately. The way you teach step by step and your english is like honey for my ears. Who is the author of this course? wow, great job!

    • @anatoleh1
      @anatoleh1 3 ปีที่แล้ว

      Victor from Coder's Tape th-cam.com/users/coderstape

    • @tyrellwreleck4226
      @tyrellwreleck4226 3 ปีที่แล้ว

      Did you purchased phpstorm? There's a lot of positive feedback but did anyone really get to follow the ide used in his lessons?

    • @briangoh8434
      @briangoh8434 2 ปีที่แล้ว

      Use vocode, they do the same but free.

  • @Joel_Powell
    @Joel_Powell 5 ปีที่แล้ว +44

    Amazing tutorial - great work. Another Laravel 6 difference - I was getting empty app.css and wasn't getting any styling on the login screen. I found that you can run:
    *composer require laravel/ui*
    then
    *php artisan ui vue*
    then
    *npm install && npm run dev*
    Refresh your browser and you are all set. This appears to be the result of refactoring/abstracting how UI (Vue, React, etc.) is used - Vue was baked in as default in Laravel 5.

    • @MaestroOfTheGame
      @MaestroOfTheGame 5 ปีที่แล้ว +1

      Thanks!

    • @Joel_Powell
      @Joel_Powell 5 ปีที่แล้ว

      @@MaestroOfTheGame You are quite welcome.

    • @mahfuzurrahman1629
      @mahfuzurrahman1629 4 ปีที่แล้ว

      Is this tutorial for Laravel 6???

    • @Joel_Powell
      @Joel_Powell 4 ปีที่แล้ว

      @@mahfuzurrahman1629 The tutorial was done on 5.x (can't remember the exact version), but I found it to be close enough to do on 6.0 - you just have to work through a few differences that are mentioned in the comments. Victors presentation is so good it's worth it with the 5.x/6.0 differences.

    • @qbmate2.0
      @qbmate2.0 4 ปีที่แล้ว +1

      You saved the day. Your answer helped me! Thank you Jesus

  • @gekost79
    @gekost79 5 ปีที่แล้ว +12

    ".,,, and not hit the database every single time" ... I think that was the MOST important part of the lesson. Laravel gives you so much BUT if you are not db cautious, you will end up with 1000 queries per page and your database will start screaming !!!

  • @andrewaldridge8735
    @andrewaldridge8735 5 ปีที่แล้ว +12

    Great tutorial!
    Unlike so many intro videos I started but abandoned it is really well paced, nice and fast with very little repetition: perfect for introducing Laravel to people already familiar with PHP, HTML and Bootstrap. Thanks Victor.

  • @dimirrusakov9517
    @dimirrusakov9517 2 ปีที่แล้ว +2

    Just started this course. Even being an experienced laravel developer I found something new for myself. Really good content

  • @kevinocansey1687
    @kevinocansey1687 3 ปีที่แล้ว +1

    THIS IS THE BEST LARAVEL TUTORIAL EVER, I KEEP COMING BACK TO THIS, NO MATTER THE PROJECT IM BUILDING

  • @JakobDam
    @JakobDam 5 ปีที่แล้ว +15

    Wow. This is by far the best tutorial for anything I've ever followed - and I've followed a lot of tutorials in very different genres. I like the pace, the way things are explained at exactly the right time etc.
    I followed this video using Notepad++ rather than PHP Storm, and had no issues at all.

    • @CodersTape
      @CodersTape 5 ปีที่แล้ว +1

      Awesome! Glad to hear

  • @SKVLL017
    @SKVLL017 5 ปีที่แล้ว +30

    For those who couldn't run the "php artisan make: auth" command, try this in sequence:
    1- composer require laravel / ui --dev
    2- php artisan ui: auth

    • @Puachunan
      @Puachunan 5 ปีที่แล้ว

      'vim' is not recognized as an internal or external command
      how to fix

    • @rasdiishak3814
      @rasdiishak3814 5 ปีที่แล้ว

      @@Puachunan search google for vim; gvim81.exe. ; install follow instruction and restart terminal.

    • @xXDevilzButler
      @xXDevilzButler 4 ปีที่แล้ว

      Thank you very much! This solved my problem! (i think the --dev was the issue)

    • @unknownman1
      @unknownman1 4 ปีที่แล้ว +1

      Dude there are so many comments on this, so stop becoming a hero.

    • @seedme
      @seedme 4 ปีที่แล้ว

      @@Puachunan That is for Linux/macOs not Windows. You may just use notepad.exe to replicate the creating of empty sqlite file. Make sure it is absolutely empty before migration.

  • @Jacker1z
    @Jacker1z 5 ปีที่แล้ว +4

    I've just spent this day completing this tutorial and doing some research. It was a great, thank you! I'm much more confident with Laravel now.

  • @pant1371
    @pant1371 3 ปีที่แล้ว +1

    i ignored laravel for some time but it really spares you so much time. For example, with raw php, you would have to open a session whenever a user logged in, get the session in miltiple .php pages and manually add it(except if you used an sql trigger) as the foreign key to the profile table, whenever the authenticated user created a post. Not to mention that you would have to manually check if the authenticated user pressed to create the post while being in their profile(for example,if the user with id=4 is logged in and they are at the profile of the user with id=10, they wouldn't have permission to add new post there). Laravel does it all in one line
    Or for example if you wanted to display the username and the info of the profile of the user with,say,id=7, you would have to join the two tables and add the id of 7(which you would grab with a Get request) in the where clause in order to display the material

  • @kujo5113
    @kujo5113 3 ปีที่แล้ว +1

    I never comment really, but I had to make a point of coming and saying.....this is the best tutorial I have ever followed, even with the minor issues caused by using Laravel 8. Clear and comprehensive, yet concise. Well done Victor, you are a legend!!

  • @UnboxSolutions
    @UnboxSolutions 5 ปีที่แล้ว +394

    ⭐️Course Contents ⭐️
    ⌨️ (0:00) Introduction
    ⌨️ (1:14) What is Laravel?
    ⌨️ (2:07) Installing Laravel
    ⌨️ (5:30) First look at the project
    ⌨️ (7:15) Intro to php artisan
    ⌨️ (11:42) Generating login flow with make:auth
    ⌨️ (12:04) Setting Up the Front End with Node and NPM
    ⌨️ (20:00) Migrations and Setting Up SQLite
    ⌨️ (26:00) Designing the UI from Instagram
    ⌨️ (42:12) Adding Username to the Registration Flow
    ⌨️ (58:35) Creating the Profiles Controller
    ⌨️ (1:04:00) RESTful Resource Controller
    ⌨️ (1:09:10) Passing Data to the View
    ⌨️ (1:10:20) Adding the Profiles Mode, Migration and Table
    ⌨️ (1:17:30) Adding Eloquent Relationships
    ⌨️ (1:28:10) Fetching the Record From The Database
    ⌨️ (1:30:00) Adding Posts to the Database & Many To Many Relationship
    ⌨️ (2:04:24) Creating Through a Relationship
    ⌨️ (2:08:12) Uploading/Saving the Image to the Project
    ⌨️ (2:19:19) Resizing Images with Intervention Image PHP Library
    ⌨️ (2:27:42) Route Model Binding
    ⌨️ (2:31:48) Editing the Profile
    ⌨️ (2:46:46) Restricting/Authorizing Actions with a Model Policy
    ⌨️ (2:54:50) Editing the Profile Image
    ⌨️ (3:00:00) Automatically Creating A Profile Using Model Events
    ⌨️ (3:12:56) Default Profile Image
    ⌨️ (3:19:48) Follow/Unfollow Profiles Using a Vue.js Component
    ⌨️ (3:31:28) Many To Many Relationship
    ⌨️ (3:46:33) Calculating Followers Count and Following Count
    ⌨️ (3:48:55) Laravel Telescope
    ⌨️ (3:51:44) Showing Posts from Profiles The User Is Following
    ⌨️ (4:01:03) Pagination with Eloquent
    ⌨️ (4:03:25) N + 1 Problem & Solution
    ⌨️ (4:05:21) Make Use of Cache for Expensive Query
    ⌨️ (4:11:44) Sending Emails to New Registered Users
    ⌨️ (4:21:51) Wrapping Up
    ⌨️ (4:22:37) Closing Remarks & What's Next In your Learning

    • @Pxlarizar
      @Pxlarizar 4 ปีที่แล้ว +7

      Unbox Solutions from the description

    • @MaqsoodAlamShafiq
      @MaqsoodAlamShafiq 4 ปีที่แล้ว +1

      I was thinking about making an index and here I am. Thank you very much for your time to create this wonderful index.

    • @divyagurumoorthy3354
      @divyagurumoorthy3354 4 ปีที่แล้ว +2

      Thank you so much :) That's really nice of you

    • @technosoid2821
      @technosoid2821 4 ปีที่แล้ว

      @@divyagurumoorthy3354 You can find that in the description too. That was just a copy/paste

    • @bosschervz
      @bosschervz 4 ปีที่แล้ว

      I believe not all heroes wear capes

  • @fthdmr5394
    @fthdmr5394 5 ปีที่แล้ว +28

    Every time im searching for courses you upload the exact content i need it is kinda scary boys

    • @fthdmr5394
      @fthdmr5394 5 ปีที่แล้ว

      @The Midnight Terminator do you believe it too ?

    • @vasiovasio
      @vasiovasio 5 ปีที่แล้ว

      We live in Simulation!

  • @jayabrams400
    @jayabrams400 5 ปีที่แล้ว +16

    For the measuring ruler he uses on mac, hold "shift" + "command" + "4". Then click to drag. And if you want to move the box around hold down the space bar. And press "esc" to exit the ruler without taking a screenshot.

    • @shaungbhone8368
      @shaungbhone8368 4 ปีที่แล้ว +1

      I need to use it on the window. How can I? Thanks.

    • @devingray1761
      @devingray1761 4 ปีที่แล้ว

      Thank you for that last part of the tip! My boss used to use screenshot for the ruler all the time and just leave screenshots all over my desktop. The escape button is a major key.

    • @jayabrams400
      @jayabrams400 4 ปีที่แล้ว +1

      @@devingray1761 lol i did the same before i learned the trick

  • @spicyLEGO
    @spicyLEGO 3 ปีที่แล้ว +1

    If you header image and profile image stops loading after creating '/profile/{user}' route, make sure to add '/' to your tag like this:
    from src="svg/placeholderLogo.svg" to src="/svg/placeholderLogo.svg"

  • @jimwelanobong
    @jimwelanobong ปีที่แล้ว +2

    TOOK ME FOUR YEARS AND FINALLY HAVE THE COURAGE TO GO HERE :D FIRST QUARTER I CAN ALREADY SAY ITS WORTH IT. VERY LAYMAN'S TERM TO MY CONFUSION. KUDOS

  • @jonatanramos5434
    @jonatanramos5434 4 ปีที่แล้ว +6

    it tookme 4 days to go throigh the entire course, but I'm finally done. Really good tutorial, thanks a lot

  • @nikhilrauniyar9084
    @nikhilrauniyar9084 ปีที่แล้ว +12

    NOTE: pr-5 does not work with the newer version of Bootstrap.
    ANS: Basically l & r (left/right) have been abandoned in favor of s & e (start/end) in order to support Right-to-left text direction. So s & e will flip between left and right depending on text direction being LTR or RTL. They changed every reference to l/r and left/right to s/e and start/end respectively, all throughout the framework.
    Solution: Use ps-5 or pe-5
    that is padding start and padding end.

  • @fatleboo2
    @fatleboo2 5 ปีที่แล้ว +7

    This is the best course on Laravel I have run into so far. Amazing work Coders Tape, earned a new subscriber.

  • @Donbros
    @Donbros 3 ปีที่แล้ว +1

    Ignore others it is for me XD
    1:06:00 - profile for an user
    1:13:04 - php artisan make:model Employee-m (creating new model (so it could be for example employees !))
    1:16:12 - will need this for otherm model
    1:24:00 - making dynamic profile
    1:27:00 nteresting push conception
    1:31:00 post-m:
    1:42:00 yielding
    1:51:00 - photo post and store
    2:03:40 and 1:02:59

  • @yasenpetrov99
    @yasenpetrov99 2 ปีที่แล้ว +4

    Thanks for the great tutorial Victor. It's now Laravel 8.77.1 and the tutorial is still relevant with minor differences.

  • @femi287
    @femi287 ปีที่แล้ว +6

    Just completed tutorial using Laravel 9. Awesome lesson!

    • @churma16
      @churma16 ปีที่แล้ว

      Did you find any problem using laravel 9 while following this tutorial?

    • @femi287
      @femi287 ปีที่แล้ว

      @@churma16 lots of it 😁, but you’ll get through with some few research. For instance, writing the namespace is now different in Laravel 9

    • @eliendongo9566
      @eliendongo9566 ปีที่แล้ว

      please what did you do with 11:41 where he put make:auth, because its not working with me

    • @femi287
      @femi287 ปีที่แล้ว +1

      @@eliendongo9566 I used Laravel ui
      Run:
      composer require laravel/ui
      php artisan ui bootstrap - -auth
      npm install
      npm run dev

    • @wassimfriejeh5180
      @wassimfriejeh5180 ปีที่แล้ว

      hi can u please tell me what u did at 3:24:16, it isnt working for me and i dont know anything about vue so i cant solve it

  • @Joel_Powell
    @Joel_Powell 5 ปีที่แล้ว +6

    At 1:55:06 the reason Victor ends up with caption="caption" is because earlier when he "borrowed" the name input from the register blade, this input said:
    name="name"
    He then replaced all instances of "name" with "caption" - which resulted in caption="caption"
    We really never wanted to replace the left hand part of that assignment.

  • @lucasaraujo6.
    @lucasaraujo6. 3 ปีที่แล้ว

    I've done it in one week starting out of blue. THIS WAS THE BEGINNING OF MY JOURNEY TO BECOME A WEB DEV. THANX

  • @shevum
    @shevum 3 ปีที่แล้ว +1

    I really can't believe this, Only with this project I've successfully cracked the PHP laravel developer job interview. They were so much impressed with this project, I do add some of my touches too. Also a lot of laravel concepts they asked in an interview, I answered very easily.
    Thank you so much this tutorial is really so awesome

    • @mohamudsharif8119
      @mohamudsharif8119 3 ปีที่แล้ว +1

      so you learnt laravel with this despite being at laravel 8

  • @Donbros
    @Donbros 3 ปีที่แล้ว +5

    If one have problems with
    "FIX (22:00) - If you try to use "vim" over Windows cmd: for Windows users, "vim" should not works. So, being at the project folder, try: copy con database\database.sqlite (press enter, so F6 then, enter again). It will create the file with nothing inside. METHOD 2: re-create this file using a different method, like (under windows os) right-click on the project folder, "create new text file" (but rename the extension txt to sqlite!) and rename it to database.sqlite"
    You have to delete all emptys spaces and rubbish within database.sqlite file and "php artisan migrate" command will work without issues

  • @pklearnerspoint2707
    @pklearnerspoint2707 5 ปีที่แล้ว +4

    You are my favorite teacher now, Honestly, i learned alot. GOD bless you
    please teach us laravel multivendor online store

    • @dimitris86speed
      @dimitris86speed 5 ปีที่แล้ว +1

      I'm also interested on this one,although i think this will go way beyond 4:30 hours

    • @pklearnerspoint2707
      @pklearnerspoint2707 5 ปีที่แล้ว

      @@dimitris86speed np sir if it's convenient for you then otherwise no issues :)

  • @limelnoll476
    @limelnoll476 2 ปีที่แล้ว +3

    For those who couldn't run the command: php artisan make:auth successfully, the newer versions of Laravel have adopted the next commands to be replacing the previous one:
    1) Run the command: composer require laravel/ui
    2) The run the command: php artisan ui vue --auth
    And voila, the authentication scaffolding generated successfully!
    Best regards.

    • @valenntinabakia3591
      @valenntinabakia3591 2 ปีที่แล้ว +1

      heyy,I did this command ,the auth file is created with the loginblade,registerblade etc but when i open the project in google the login and sign up is not shown in the page,can you please tell me how did you make them to show up in the page(like in the 12:09 minute of the video),it would mean so much if you helped me

    • @limelnoll476
      @limelnoll476 2 ปีที่แล้ว +1

      ​@@valenntinabakia3591 Hey!
      If you're strugglin' with fact that those two links don't appear in your project webpage's header, then you can refer the JSON file where you can resolve this problem.
      Bes regards.

    • @valenntinabakia3591
      @valenntinabakia3591 2 ปีที่แล้ว

      @@limelnoll476 thanks, they are many .json files , i also watched like 10 tutorials for this and for them the links are shown easily…if i write /login or /register in the url section i get the forms but I d like the links to be shown just like this tutorial

    • @amada.10
      @amada.10 2 ปีที่แล้ว

      The second command doesn't work idk why

  • @Sansa-Academy
    @Sansa-Academy 2 ปีที่แล้ว

    Watching this in 2022, and I have just completed the tutorial, using Laravel 8.0. Laravel is still a pretty powerful framework that makes everything seem so easy to use. Its almost as if you have downloaded an app from the internet and are just unlocking its powerful features. Am still a novice in the coding world but my hunger to learn new concepts is insatiable. I would highly recommend this framework as a gateway for anyone who is new to the programming world and is eager to learn.

  • @CharlyDS
    @CharlyDS 3 ปีที่แล้ว +1

    Excellent. I'm a Codeigniter developer and this was the best help to get into Laravel so far.

  • @nac9880
    @nac9880 5 ปีที่แล้ว +6

    3:17:57 *PRO TIP* You can put the array_merge inside the IF(request('image')) and you won't need to worry about the "$imagePath is not set" plus you'll only need to pass the $data array to the udpate normally:
    if (request('image')) {
    // put the rest of the code here
    $data = array_merge($data, ['image' => $imagePath]);
    }
    auth()->user()->profile->update($data);

    • @MachineGamer
      @MachineGamer 4 ปีที่แล้ว

      Thank you, you save my day!

    • @cmdrwhitesnake7386
      @cmdrwhitesnake7386 4 ปีที่แล้ว

      I wouldn't even bother using array_merge - when all you need to do is add one key to an existing array, just have this inside your if(request('image')) block:
      $data['image'] = $imagePath;

  • @githakambui3983
    @githakambui3983 2 ปีที่แล้ว +47

    Great tutorial but you should update it to Laravel 8.0. Some commands such as "PHP artisan make:auth" no longer work in laravel 8.0

    • @mh5854
      @mh5854 2 ปีที่แล้ว +18

      instead you should do the following steps:
      1. composer require laravel/ui
      2. php artisan ui:controllers
      3. php artisan ui bootstrap --auth
      note... you could write vue or react instead of bootstrap in step 3

    • @Hin69Hin
      @Hin69Hin 2 ปีที่แล้ว +3

      no wonder why i did it 10times but nothing came up

    • @stalinyt6167
      @stalinyt6167 2 ปีที่แล้ว

      php artisan migrate is not working
      I tried to find solution but no luck
      can you help me plz

    • @loicrutabana1884
      @loicrutabana1884 2 ปีที่แล้ว +2

      @@mh5854 controllers*
      Thanks for the tip though

    • @alain2110
      @alain2110 2 ปีที่แล้ว +2

      watch this for version 7 and above th-cam.com/video/I9VAwh2XAdQ/w-d-xo.html

  • @damiankrol5879
    @damiankrol5879 4 ปีที่แล้ว +5

    2:53:09 I have found this 404 way earlier than you and I thought I messed something up so I spent like half hour trying to figure it out myself and failed xD
    Also you are saving my life, I need to make an php website with laravel to pass the year at university however my professor completely failed to bring it up in class and we all have to learn about it at home...

    • @arel3708
      @arel3708 4 ปีที่แล้ว +1

      Thank you for saving my time good Sir

  • @bazihaye_baba
    @bazihaye_baba 3 ปีที่แล้ว

    I've been trying just to install Laravel, couldn't do it even with the documentation, with this video I could just do whatever I needed without any hassle! the best so far!

  • @David-ik4mm
    @David-ik4mm 4 ปีที่แล้ว

    Thank you very much. I am about to start my first real project to an enterprise as a requisite for a major in my career, and I put myself the challenge to learn Laravel from scratch and develop this project with it.
    Thanks to this video, I will do it without any problem.
    English is not my first language, so please excuse any mistakes.
    Thank you so much.

  • @anatoleh1
    @anatoleh1 3 ปีที่แล้ว +6

    By far the best programming tutorial I have ever watched. Wow! There is so much in there, and it is structured so magnificently! Thank you!
    By the way, I really want that "So Laravel actually ships with" counter :D

  • @FatihAKANTR
    @FatihAKANTR 5 ปีที่แล้ว +15

    my english not good, but i understand you man... you are amazing :D

  • @borjovsky3164
    @borjovsky3164 5 ปีที่แล้ว +10

    This is one of the best tutorials I ever saw about anything! And I've seen a lot!
    Thank you very much!

    • @CodersTape
      @CodersTape 5 ปีที่แล้ว +3

      Appreciate that

  • @olixz
    @olixz 4 ปีที่แล้ว +1

    Absolute hero! Been doing a university assignment and found it hard to find an all in one place!. I was having a nightmare with the login system m. Thanks again!.

    • @CODINGISEASY
      @CODINGISEASY 4 ปีที่แล้ว

      I have a few extra bits you may like

    • @olixz
      @olixz 4 ปีที่แล้ว

      @@CODINGISEASY Great thank you I appreciate it, I'll check out your channel.

  • @teajinman2375
    @teajinman2375 4 ปีที่แล้ว

    I am here just to express my gratitude for this course. I'm in job hunting period and this definitely will help me alot and it is. Initially I thought I will spend 4 days to complete this but instead I spent 10days as I keep stuck on some part of it and the errors shown. However, it trains my ability to search for the solution of those errors and tried out 1 by 1. I had been stucked on the same error for 2 days but I just can't figured it out. When it comes to the end of the course, I heard Victor said its good if you had been stucked around and I felt totally agreed because I really learnt more but not just merely follow to code.
    Thank you so much Victor!

    • @amberbdr8168
      @amberbdr8168 3 ปีที่แล้ว

      Help me to install laravel..

  • @SeanTraynor_dbblTS
    @SeanTraynor_dbblTS 5 ปีที่แล้ว +5

    Never before have I learned this much, this fast. Your tutorial is amazing, and you should consider doing courses in Udemy or something similar.
    Thanks!

    • @mosesegboh
      @mosesegboh 4 ปีที่แล้ว

      please i need help, vim database/database.sqlite says ''vim' is not recognized as an internal or external command,
      operable program or batch file......what do i do??'

  • @JusticeTheLoneWolf
    @JusticeTheLoneWolf 5 ปีที่แล้ว +4

    this is an absolute wonder. I have done everything exactly with some spice on top as you have shown, Victor. Thank you so much. I am looking forward to more videos.

  • @jayabrams400
    @jayabrams400 5 ปีที่แล้ว +6

    FYI: If you use the command: "laravel new freeCodeGram", you will have issues with this tutorial as the version he is working on is laravel 5.8, but the command above installs laravel 6. Save yourself the headache and run this command: 'composer create-project laravel/laravel="5.8.*" freeCodeGram' if you have composer installed globally, or 'php composer.phar create-project laravel/laravel="5.8.*" freeCodeGram' if you have composer installed locally. You will thank me later.

    • @kristapsvecvagars5049
      @kristapsvecvagars5049 4 ปีที่แล้ว

      Or you could put on your big boy pants and adapt to laravel 6 on the fly :)

  • @xanokothe
    @xanokothe 4 ปีที่แล้ว

    This tutorial is excelent. I watched it knowing ZERO of laravel and in a week I was able to make a full webapp that is in production. Thank you

  • @gilskie
    @gilskie 2 ปีที่แล้ว +2

    definitely worth it watching the whole tutorial. previously had an experience with laravel around 2013-2014 and so much had changed. im currently applying my knowledge for a simple application that i would like to have. looking forward on having new tutorials from time to time. thanks for sharing!

  • @ivan5486
    @ivan5486 5 ปีที่แล้ว +6

    Hello, finally i found a good Laravel 5.8 tutorial ¡¡¡
    I apreciate very much thant you explain the best way to do things,
    I ve lost a lot of time with other tutorials that explain how to do the same thing in 100 diferent ways, 99 worng and 1 ok.

  • @elkhanhamet2561
    @elkhanhamet2561 3 ปีที่แล้ว +3

    What an amazing course!!! Thanks a million Victor!!! Now it became clear how a real application is being built in Laravel. I was just wondering if you’re planning on creating a new more complex web application with Laravel 8. That would be something. 👍👍👍👏👏👏👏

  • @sarthakgupta2418
    @sarthakgupta2418 3 ปีที่แล้ว +11

    If anyone is getting errors at 1:07:50 in VSCode or any other IDE, using Laravel 8, just change "use App/User" to "use App/Models/User"

    • @KL-es9bt
      @KL-es9bt 2 ปีที่แล้ว

      I was looking for User.php

  • @hamyid
    @hamyid 3 ปีที่แล้ว +2

    For those who getting error message on laravel 8.0 and later.
    After running command
    php artisan make:auth its deprecated now.
    Now you have to use.
    1. composer require laravel/breeze --dev
    2. php artisan breeze:install
    3. npm install
    4. npm run dev
    5. php artisan migrate

  • @typ0_cratz
    @typ0_cratz 4 ปีที่แล้ว

    Hey Victor, I just dropped to the comments section to tell you this was just a great, great, great tutorial.
    I stayed the whole time, not skipping even a second, and felt so good when the project was over.
    Honestly, one of the best tutorials I have seen. I am already subscribed to Coder's tape. I wish you all the best!

    • @haziqhaikal9411
      @haziqhaikal9411 4 ปีที่แล้ว

      sorry to interrupt u bro, but im totally a beginner for this kind of thing, can i know what is the "terminal" does he mean at the early of the video??

  • @yiyoja
    @yiyoja 5 ปีที่แล้ว +34

    Could you turn on the automatic subtitles for this video? It wouls help a lot because I'am not good at English listening.

    • @ashishpoudel5927
      @ashishpoudel5927 4 ปีที่แล้ว

      npm install not working
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
      up to date in 196.022s
      36 packages are looking for funding
      run `npm fund` for details

  • @jrayalac
    @jrayalac 5 ปีที่แล้ว +4

    jesus this thing is powerful, I was so used to keep DBeaver open at all times, now I really just need to have cmd open and Atom running and I can develop a full app. I find it so awesome that it also deals with table relationships, and everything.
    The best part is that in my country laravel developers get paid fairly well, so here I go! haha

  • @harismemon1546
    @harismemon1546 4 ปีที่แล้ว +6

    03:22:54 if you can't find "ExampleComponent.vue" in "js" folder then do the following
    go to Laravel documentation and choose your Laravel version and then search this "JavaScript & CSS Scaffolding" then you'll get command like "composer require laravel/ui" run that using composer after that run "php artisan ui vue" and finally run "npm install && npm run dev" (ignore the warnings and errors).
    For finding your installed Laravel version go to your project open terminal/composer write "php artisan --version"

    • @DHBen
      @DHBen 4 ปีที่แล้ว

      Thank you Haris - legend!

    • @harismemon1546
      @harismemon1546 4 ปีที่แล้ว

      @@DHBen 🙏

    • @femi287
      @femi287 ปีที่แล้ว

      This is helpful. Thanks.

  • @kenlloydbillones8959
    @kenlloydbillones8959 2 ปีที่แล้ว

    Just finished the project, and boi it was satisfying, a great teacher makes a great student. I'm happy to see that around 3k subscribers on this video, you now have 5M subscribers. You just deserve it! Thanks for the free course!

  • @techwithdenzel
    @techwithdenzel 2 ปีที่แล้ว

    It's amazing how Laravel already has the log in form set up, this is awesome.

  • @johnkamau6853
    @johnkamau6853 3 ปีที่แล้ว +8

    For Laravel 8, on the make:auth, use
    composer require laravel/ui
    php artisan ui vue --auth

    • @highler_law
      @highler_law 3 ปีที่แล้ว +1

      Thanks! npm is required right after that: npm install && npm run dev

    • @johnkamau6853
      @johnkamau6853 3 ปีที่แล้ว

      @@highler_law Yes. After that npm install && npm run dev is required

  • @Stevenbensonofficial
    @Stevenbensonofficial ปีที่แล้ว +7

    11:46 If you're using Laravel in Termux and the php artisan make:auth command is not working, it might be because Laravel no longer includes the make:auth command in the latest versions (since Laravel 6).

  • @unkn0wnrge189
    @unkn0wnrge189 5 ปีที่แล้ว +4

    I'm brazilian and I understand your english almost 100%, sometimes I got crazy with lest europeans talking english.

  • @hauntedspear5728
    @hauntedspear5728 4 ปีที่แล้ว +1

    Just finish everything from the start until the end, and everything works properly just like in the video. I stuck many times, but managed to finish it. I just want to say thank you for making this video, even though I not fully understand everything bcs I still a beginner. I will keep learning laravel :D
    For those who are keep working in the development. Dont give up, this is really worth to follow through. If stuck at some place, try to view back the code at the github link, try to google and do not fully depends on the video. Try to explore by yourself. Rewind the video maybe you miss something important. I also have to make some adjustment because I use laravel 6.9 and the video use laravel 5.8.
    All the best guys!!

    • @ih4722
      @ih4722 4 ปีที่แล้ว

      Is there a source code available ? if not could you share yours ? I really don't have 4 hours of free time. thanks

    • @hauntedspear5728
      @hauntedspear5728 4 ปีที่แล้ว

      @@ih4722 you can just take the source code at the github link in the video description. The code is the same

    • @ih4722
      @ih4722 4 ปีที่แล้ว

      @@hauntedspear5728 I cant believe I did not see it thanks

  • @barkingdog67
    @barkingdog67 ปีที่แล้ว

    This guy is fantastic. Learning so much watching and replicating what's he's doing. Loved to see more of his stuff.

  • @saffron6661
    @saffron6661 2 ปีที่แล้ว +3

    Needs a Laravel 9 fullstack update. Especially since the new Vite Update which has been a game changer for frontend. Laravel + Vue = ♥️

    • @priess0
      @priess0 2 ปีที่แล้ว +1

      Exactly this update is what broke this app and tutorial. I managed to get over all other changes but learning vue through an already comprehensive and outdated laravel intro is not so much dipping feet into something - it's more of guantanamo bay waterboarding 101

  • @sh4d0wj4go3
    @sh4d0wj4go3 5 ปีที่แล้ว +6

    mytimestamp : 4:25:04
    p.s. this is the best tutorial ive ever experienced so far.
    p.p.s. incredible video, thank you very much.

  • @temidayogabriel6496
    @temidayogabriel6496 2 ปีที่แล้ว +3

    If you are a starter like me in 12:00, I suggest you just skip the “make auth” process since laravel’s new update has already done that for you

  • @fahadsheikh8589
    @fahadsheikh8589 3 ปีที่แล้ว

    Number One in my Laravel developer tutor list. I appreciate him the way he teach.

  • @prewishjay5581
    @prewishjay5581 ปีที่แล้ว

    this is what i call a tutorial! everything is so well explained! no round about doing this, u even started with the databse set up instead of routes (what ive seen others do) this is how u educate!

  • @hamdallan3561
    @hamdallan3561 4 ปีที่แล้ว +9

    17:30 Laravel no longer ships with ui. It comes seperately, to get it, in terminal write
    composer require laravel/ui
    php artisan ui vue

  • @Back-2-School-Hacks
    @Back-2-School-Hacks ปีที่แล้ว +8

    *Notice* that make:auth is not relevant for Lavarel 9. Run this command after Lavarel installation: composer require laravel/ui --dev then run "php artisan ui:auth"

  • @kiranaryal3641
    @kiranaryal3641 4 ปีที่แล้ว +5

    this guy knows how to guide

  • @xteclisx27
    @xteclisx27 4 ปีที่แล้ว

    Might just be the single best programming tutorial I've ever watched start to finish. Well done mate.

  • @sebot1
    @sebot1 4 ปีที่แล้ว +2

    Wow, Victor, this is the most greatest howto video in the web! Your lesson extremely fast gives all of info that is really needed.
    Awesome!

  • @omgerplayz
    @omgerplayz 5 ปีที่แล้ว +19

    Here is a fix for the error Unknown command: make:auth.
    Try running:
    composer require laravel/ui
    php artisan ui:auth
    php artisan migrate
    (pin this message so everyone knows the fix)

    • @qbmate2.0
      @qbmate2.0 4 ปีที่แล้ว

      Yeah the above commands are useful

  • @WalterWoshid
    @WalterWoshid 4 ปีที่แล้ว +4

    Thank you very much. Great guide. You gave the perfect amount of information, so that we still can learn a lot by ourselves. It was a little hard following the workflow of the routes/controllers/views, but I think some kind of visualization could really help, especially for beginners. Nonetheless those are just my 2 cents, thanks for the tutorial!

  • @DevilishAngelxA
    @DevilishAngelxA 5 ปีที่แล้ว +5

    It’s like you heard my thoughts 😮 thank you for this 😭❤️

    • @CodersTape
      @CodersTape 5 ปีที่แล้ว +3

      Glad to hear, thanks for watching

  • @padraichoselton2861
    @padraichoselton2861 4 ปีที่แล้ว

    Damn I just got into laravel making my own admin panel, and this helped me learn how laravel handles its code. I would 100% suggest this to anyone who is wanting to learn laravel!

    • @Mo7anak
      @Mo7anak 4 ปีที่แล้ว

      heyyy, im sorry for bothering you, but i learn this course nowadays and i have an error with running " npm run dev"
      it gave me a bunch of errors and i searched for solution everywhere and nothing helped, could you help me?

    • @bhaweshthapa4672
      @bhaweshthapa4672 4 ปีที่แล้ว

      What are the pre-requisites for watching this video? I know HTML, CSS, basic Javascript, Precedural PHP and OOP in PHP. Is it enough for me to watch this video?

  • @samdonaghybell
    @samdonaghybell 3 ปีที่แล้ว

    For anyone that got bored of running "npm run dev" ---- doing "npm run watch" will allow you to save and refresh chrome and see the style changes without going near terminal again.

  • @Asukurra
    @Asukurra 2 ปีที่แล้ว +4

    For anyone using Laravel 8.x+ and having trouble at the 2 hours mark with auth()->user()->posts(), my solution below
    in the PostsController
    add "use Illuminate\Support\Facades\Auth;" without the quotes to your dependencies
    add the user_id as a new element to the data array then set that value to auth()->id()
    use "\App\Models\Post::create($data);" without the quotes to store the data
    public function store()
    {
    $data = request()->validate([
    'caption' => 'required',
    'image' => ['required','image']
    ]);
    array_push($data,"user_id");
    $data["user_id"] = auth()->id();
    \App\Models\Post::create($data);
    }

  • @MarcosEsqueda
    @MarcosEsqueda 5 ปีที่แล้ว +7

    Dude! Thanks a lot for this tutorial! but you just missed one thing, how to delete the post? using @delete() method? And what happened with the image in the storage folder?

  • @how-to.224
    @how-to.224 3 ปีที่แล้ว +3

    Installing Bootstrap
    Head over to your terminal, navigate to your Laravel 7 project and run the following command:
    $ composer require laravel/ui
    After successfully installing the package, we install Bootstrap 4 in our application using the following command:
    $ php artisan ui bootstrap
    $ npm install && npm run dev

  • @madie2659
    @madie2659 3 ปีที่แล้ว +2

    if any of you guys are using laravel 8 or +
    you need to run these commands at 11:43 :
    1. composer require laravel/ui
    2. php artisan ui bootstrap --auth
    3. npm install && npm run dev

    • @jabbamedia2644
      @jabbamedia2644 3 ปีที่แล้ว

      could not find driver (sql pragma foreign_keys = on ) how about this error

  • @tomatte99
    @tomatte99 4 ปีที่แล้ว +1

    Instead of using "make:auth" I did run the command "php artisan ui vue --auth" and that worked for me.

    • @JasvirSingh-fd6fp
      @JasvirSingh-fd6fp 3 ปีที่แล้ว

      Exactly, that's the new method in Larval 6 & 7, for 5.8 it was make:auth..one should check their laravel version and according to that only we can make our authentication. for more details, check Larvel Documentation. happy coding

  • @anonymoustv8604
    @anonymoustv8604 3 ปีที่แล้ว +5

    make:auth doesn't exist anymore. So simply do the following
    composer require laravel/ui
    php artisan ui:auth