@@user-vz1oz9do7h 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
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.
*### 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)
@@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.
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
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.
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
@@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
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.
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.
@@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. 👍
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 RU-vid 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!
RU-vid'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.
⭐️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
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.
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.
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 👍😀😀👍
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.
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
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!
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.
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.
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.
@@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.
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
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.
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!!
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
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
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
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.
".,,, 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 !!!
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"
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
*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"
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.
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!
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!
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
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.
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...
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!.
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!
This is an amazing tutorial, I'd like to see it updated to current versions of Laravel and other programs used. But even so, it's been an amazing feeling every time I managed to overcome the differences in versions. Thank you for this video
If you stuck in around 1:45:00 with store method, there is new kind a request formulation: public function store(Request $request) { dd($request->all()); }
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!
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??'
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
I've got an issue, when i run php artisan make:auth on my terminal i get this " ERROR Command "make:auth" is not defined. Did you mean one of these?" and i recieve a list of suggested command. please i dont know what to do next i need help
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!
@@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.
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.
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.
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.
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!
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.
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).
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.
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);
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;
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"
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!
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
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
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.
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
i love you man you're the best, Although I didn't catch everything, I managed to finish it and understand some notions of object oriented programming on laravel. thank you victor
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. 👍👍👍👏👏👏👏
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.
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
@@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.
@@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
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
if the first "php artisan migrate" command fails with this error: "could not find driver (SQL: PRAGMA foreign_keys = ON;)", you need to enable the "pdo_sqlite" extension in your PHP installation!
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!!