@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
@sahnounemohamed-e9r A good developer will always learn from many different resources brother :) , I'm sure the guy also referred to the documentation for other stuff he wanted to be implemented, or searched through google for others. Keep that it mind.
*### 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.
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.
⭐️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
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. 👍
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 👍😀😀👍
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.
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.
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.
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 UA-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!
UA-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.
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
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.
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
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!!
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.
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"
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
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
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;
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.
00:05 This video is a full course on Laravel PHP Framework and will teach you how to build an Instagram clone. 02:48 To install Laravel PHP Framework, follow these steps: install it globally, install node.js and NPM, install Laravel installer. 08:09 Laravel PHP Framework allows you to develop exactly what you need for your application 10:45 Use controllers instead of views for computing and fetching database queries 15:50 Installing and setting up Laravel involves installing dependencies and running NPM commands for frontend compilation. 18:12 Organizing front end assets in Laravel 23:08 Setting up the database and running migrations 25:36 Setting up the login functionality and accessing restricted pages 30:31 Adjusting logo size and padding to improve front-end alignment 32:54 Adding padding and dividing sections 37:45 Changing the background color and adding a link 40:00 Adding images and fixing image resizing and spacing 44:55 Controllers hold the logic for manipulating and fetching data in Laravel. 47:29 Validation rules for user registration 52:17 Creating a new user after passing validation 54:49 Remaking the database using migrate fresh 59:55 Create a profiles controller to replace the home controller 1:02:26 Using a restful controller in Laravel helps facilitate development and makes the codebase cleaner. 1:07:11 Fetching the user from the database using the user model. 1:09:42 Learn how to create a profile model in Laravel 1:14:30 Creating a one-to-one relationship between the user and profile models 1:16:57 Creating a relationship between the User and Profile models in Laravel 1:21:53 Using Laravel's Tinker tool to interact with the application 1:24:29 Fetching user details from the database with Laravel PHP framework. 1:29:01 Implementing defensive programming with findOrFail() in Laravel 1:31:23 Create a post migration with user ID reference, title, caption, and image fields. 1:36:16 Add new posts and create a route for 'P/create' 1:38:37 Learn how to organize views in Laravel using directories. 1:43:15 Moving and renaming files for different controllers 1:45:34 Strict naming conventions and guidelines are important for the health and benefit of your application. 1:50:02 Adding a new post to the project 1:52:27 To fix the 419 page expired error, add the '@CSRF' directive in the form 1:57:20 Caption and image fields are required for creating a new post 1:59:48 Using the Create method is an easier way to store data in Laravel 2:04:55 Laravel automatically adds the user ID for posts created by the authenticated user. 2:07:30 Uploading and resizing images for posts 2:12:20 Adding storage on the fly and saving image path in database 2:14:41 Setting up a relationship between users and posts 2:19:24 We can use the Intervention Image Library to resize and fit uploaded images into a square automatically. 2:21:50 Import the intervention image class and resize images to a fixed size 2:26:45 Implementing route model binding in Laravel 2:29:19 Passing data through the post 2:34:12 Refactoring the code to use Laravel's helper functions 2:36:35 Using the 'patch' method for updating rather than 'put' 2:41:37 Summary of the video 2:44:11 Disabling mass assignment for protected fields and ensuring controlled data input 2:49:37 Protecting the edit view and update route 2:52:06 Restricting 'Add New Post' option based on user profile 2:56:59 Using array merge to override values in an array 2:59:40 Creating a blank profile for users during registration 3:04:51 Adding and displaying user profile image 3:07:23 Styling the image and username display 3:12:05 Creating a method in the profile model to return the profile image 3:14:29 Dynamically retrieve profile images based on availability 3:19:39 The next step is to handle followers on Instagram 3:22:04 Convert the Follow button into a view component to interact with the server without refreshing the page. 3:26:51 Make API calls to the server using axios library 3:29:23 Implementing a many-to-many relationship between profiles and users 3:34:33 Setting up the followers relationship between user profiles 3:37:15 Exploring the follow/unfollow functionality of the Laravel PHP framework 3:42:38 Implementing follow and unfollow functionality in Laravel PHP framework 3:45:08 Handle unauthorized access error by redirecting the user to the login page. 3:50:27 Telescope is a powerful development tool that tracks queries, logs, exceptions, and more. 3:52:52 Set up the posts controller to show all posts in reverse chronological order for users the current user is following 3:58:09 Get all posts to show up on the homepage with image and caption. 4:00:33 Implementing pagination in Laravel is made easy with the paginate method. 4:05:37 Implement caching for faster data retrieval in Laravel PHP framework tutorial. 4:08:10 Caching in Laravel PHP Framework 4:13:03 Setting up Mailtrap for email testing in Laravel 4:15:37 Creating a welcome email template in Laravel framework 4:20:41 Modifying email settings and fixing redirect after registration 4:23:13 Subscribe to the UA-cam channel for more Laravel videos and access to the course code.
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
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
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.
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!
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!
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...
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).
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!
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!
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!
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.
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.
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
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.
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"
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.
".,,, 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 !!!
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??'
@@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.
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!
*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"
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.
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!.
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. 👍👍👍👏👏👏👏
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
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
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
At 1:37:53, if you're using Laravel 8, instead of "Route::get('/p', PostsController@create); " use "Route::get('/p', [App\Http\Controllers\PostsController::class, 'create']);"
just before that the used this:"{{ $user->name }}" if i only print the variable $user i get the ID(in my case number 2) but when I put user behind it like shown in my comment i get:"Trying to get property 'name' of non-object (View: C:\Users\mitch\antartica esources\views\profile.blade.php)" public function index($user) { User::find($user); return view('profile',['user' => $user,]); This is in my profile controller, what am I doing wrong, since you got passed it i thought I'd ask you. Thanks in advance.
@@mitchelk.3682 Tbh my man I'm not even following this course anymore, first of all it uses very old version of laravel that is very different from version 8. I'm also stuck on another thing and I'm done with endless troubleshooting. If you want a good laravel course here is one I'm currently following: ua-cam.com/video/BXiHvgrJfkg/v-deo.html
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
Well done Victor. I don't know how did I land on your video but I am feeling so lucky. Hats off to you! I wish I could tribute you in a better way. I am a Java Guru and i never worked with php. You made everything so simple for me. I was able to finish your video in three days and now I am quite good to go with php. Thank you so much!
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
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!
⌨️ (1:30:00) Adding Posts to the Database & Many To Many Relationship it should be ⌨️ (1:30:00) Adding Posts to the Database & One To Many Relationship
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.
FIX ISSUE at 1:08:45 You might get the error: Class "App\User" not found... Because the newer versions of Laravel has the User.php file in a different path: App\Models\User
If anyone else has a problem at 3:24:29 with the Follow button not appearing, I had to do a hard refresh with chrome on mac cmd+shift+r after running npm dev watch for it to appear.
I fixed it, as you have written! Ctrl+shift+r! Thank you very much! Two days i've tried everything, watched so many tutorials for npm, webpack, node.js,...and the follow button didn't appear until i saw your comment! Thank you very much for writing it!
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.
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()); }
its still not working for me ..... i think it has a routing problem.. getting this message : "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The POST method is not supported for this route. Supported methods: GET, HEAD." i have being trying to fix this post route..still no hope.. @freecodecamp
Hello, I've done this tutorial few months ago and now I'm building an entire commercial website. Thank you very much!
that's impressive.. so I can assume this course is good... thanks for the hype..
Hello, please how did you get past ua-cam.com/users/clipUgkx27iYB3x-keq0qpxVeHoMLlwTi0y_0JYY
How are you doing now
@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
@sahnounemohamed-e9r A good developer will always learn from many different resources brother :) , I'm sure the guy also referred to the documentation for other stuff he wanted to be implemented, or searched through google for others. Keep that it mind.
*### 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)
This is what i was searching for
I have stuck in vim error
Thanks
Thanks so much. I had all three problems and that fixed them all :)
Can you please explain the third error briefly ? How to do it ?
@@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.
@@DiegoSayron thanks alot my problem is solved now. Also i have checked you channel it is great
I legit have a job now because of this single video. You saved me and my family's life. Thank you so much.
What an inspiring comment from Bin Laden lol
i guess they didn't kill you....atleast you're trying to make an honest living man
Times have changed my friends.
😲
It's 2023 and I got a job as a Laravel Backend Developer thanks to this video!!!!
Congrats man, hoping to do the same.
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.
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.
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.
Wow Congratulations to you !
Congrats. I have an interview in 5 days. Wish me lucky 😉
Julio M good luck bro
Glad to hear that. Good job bro.
How's going bro after few months? I have just started learning laravel and i am curious :D
⭐️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
Unbox Solutions from the description
I was thinking about making an index and here I am. Thank you very much for your time to create this wonderful index.
Thank you so much :) That's really nice of you
@@divyagurumoorthy3354 You can find that in the description too. That was just a copy/paste
I believe not all heroes wear capes
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. 👍
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.
thanks man, you help me
Thanks a lot!
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 👍😀😀👍
Thanks!!
@@nemanjastojanovic7497 thanks
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
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.
Can't stop watching... makes you feel like a wizzard... even when you just follow the steps of the master ;-)
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.
Hehehehe my sentiments exactly
its a great course
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.
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 UA-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!
Finally. A clear, fluent speaker at the right speed. Believe me, it's been challenging. Thanks. I look forward to this.
UA-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.
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
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.
The files generated won't have any CSS applied
@@Tennyson999 Please run "npm install && npm run dev" to compile your fresh scaffolding.
@@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
@@Tennyson999 they are frameworks for the frontend. they do the same job. choose the one u love most
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
U can also build a project with old version by comend: composer create-project laravel/laravel nazwa "5.8.*"
Thank you! my project was missing the vue auth-ui because of not doing the second command. ^_^
we need to make this top comment... until another version changes this from being correct
I dont know which one made it work but thanks Jafar
i recommend this
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
THIS IS THE BEST LARAVEL TUTORIAL EVER, I KEEP COMING BACK TO THIS, NO MATTER THE PROJECT IM BUILDING
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!
Victor from Coder's Tape ua-cam.com/users/coderstape
Did you purchased phpstorm? There's a lot of positive feedback but did anyone really get to follow the ide used in his lessons?
Use vocode, they do the same but free.
Just started this course. Even being an experienced laravel developer I found something new for myself. Really good content
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.
That's GREAT GREAT news! Stick with it, it is well worth it.
I've done it in one week starting out of blue. THIS WAS THE BEGINNING OF MY JOURNEY TO BECOME A WEB DEV. THANX
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.
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
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.
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!!
so i can use this to learn laravel
Excellent. I'm a Codeigniter developer and this was the best help to get into Laravel so far.
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"
I was looking for User.php
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.
Great catch. Thanks
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"
Thank you Haris - legend!
@@DHBen 🙏
This is helpful. Thanks.
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
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
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);
Thank you, you save my day!
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;
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.
Awesome! Glad to hear
it tookme 4 days to go throigh the entire course, but I'm finally done. Really good tutorial, thanks a lot
Can you help?
00:05 This video is a full course on Laravel PHP Framework and will teach you how to build an Instagram clone.
02:48 To install Laravel PHP Framework, follow these steps: install it globally, install node.js and NPM, install Laravel installer.
08:09 Laravel PHP Framework allows you to develop exactly what you need for your application
10:45 Use controllers instead of views for computing and fetching database queries
15:50 Installing and setting up Laravel involves installing dependencies and running NPM commands for frontend compilation.
18:12 Organizing front end assets in Laravel
23:08 Setting up the database and running migrations
25:36 Setting up the login functionality and accessing restricted pages
30:31 Adjusting logo size and padding to improve front-end alignment
32:54 Adding padding and dividing sections
37:45 Changing the background color and adding a link
40:00 Adding images and fixing image resizing and spacing
44:55 Controllers hold the logic for manipulating and fetching data in Laravel.
47:29 Validation rules for user registration
52:17 Creating a new user after passing validation
54:49 Remaking the database using migrate fresh
59:55 Create a profiles controller to replace the home controller
1:02:26 Using a restful controller in Laravel helps facilitate development and makes the codebase cleaner.
1:07:11 Fetching the user from the database using the user model.
1:09:42 Learn how to create a profile model in Laravel
1:14:30 Creating a one-to-one relationship between the user and profile models
1:16:57 Creating a relationship between the User and Profile models in Laravel
1:21:53 Using Laravel's Tinker tool to interact with the application
1:24:29 Fetching user details from the database with Laravel PHP framework.
1:29:01 Implementing defensive programming with findOrFail() in Laravel
1:31:23 Create a post migration with user ID reference, title, caption, and image fields.
1:36:16 Add new posts and create a route for 'P/create'
1:38:37 Learn how to organize views in Laravel using directories.
1:43:15 Moving and renaming files for different controllers
1:45:34 Strict naming conventions and guidelines are important for the health and benefit of your application.
1:50:02 Adding a new post to the project
1:52:27 To fix the 419 page expired error, add the '@CSRF' directive in the form
1:57:20 Caption and image fields are required for creating a new post
1:59:48 Using the Create method is an easier way to store data in Laravel
2:04:55 Laravel automatically adds the user ID for posts created by the authenticated user.
2:07:30 Uploading and resizing images for posts
2:12:20 Adding storage on the fly and saving image path in database
2:14:41 Setting up a relationship between users and posts
2:19:24 We can use the Intervention Image Library to resize and fit uploaded images into a square automatically.
2:21:50 Import the intervention image class and resize images to a fixed size
2:26:45 Implementing route model binding in Laravel
2:29:19 Passing data through the post
2:34:12 Refactoring the code to use Laravel's helper functions
2:36:35 Using the 'patch' method for updating rather than 'put'
2:41:37 Summary of the video
2:44:11 Disabling mass assignment for protected fields and ensuring controlled data input
2:49:37 Protecting the edit view and update route
2:52:06 Restricting 'Add New Post' option based on user profile
2:56:59 Using array merge to override values in an array
2:59:40 Creating a blank profile for users during registration
3:04:51 Adding and displaying user profile image
3:07:23 Styling the image and username display
3:12:05 Creating a method in the profile model to return the profile image
3:14:29 Dynamically retrieve profile images based on availability
3:19:39 The next step is to handle followers on Instagram
3:22:04 Convert the Follow button into a view component to interact with the server without refreshing the page.
3:26:51 Make API calls to the server using axios library
3:29:23 Implementing a many-to-many relationship between profiles and users
3:34:33 Setting up the followers relationship between user profiles
3:37:15 Exploring the follow/unfollow functionality of the Laravel PHP framework
3:42:38 Implementing follow and unfollow functionality in Laravel PHP framework
3:45:08 Handle unauthorized access error by redirecting the user to the login page.
3:50:27 Telescope is a powerful development tool that tracks queries, logs, exceptions, and more.
3:52:52 Set up the posts controller to show all posts in reverse chronological order for users the current user is following
3:58:09 Get all posts to show up on the homepage with image and caption.
4:00:33 Implementing pagination in Laravel is made easy with the paginate method.
4:05:37 Implement caching for faster data retrieval in Laravel PHP framework tutorial.
4:08:10 Caching in Laravel PHP Framework
4:13:03 Setting up Mailtrap for email testing in Laravel
4:15:37 Creating a welcome email template in Laravel framework
4:20:41 Modifying email settings and fixing redirect after registration
4:23:13 Subscribe to the UA-cam channel for more Laravel videos and access to the course code.
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
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
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.
thank you man!
Every time im searching for courses you upload the exact content i need it is kinda scary boys
@The Midnight Terminator do you believe it too ?
We live in Simulation!
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!
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!
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??
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...
Thank you for saving my time good Sir
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).
This is the best course on Laravel I have run into so far. Amazing work Coders Tape, earned a new subscriber.
Thank you.
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!
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!
This is one of the best tutorials I ever saw about anything! And I've seen a lot!
Thank you very much!
Appreciate that
Thanks for the great tutorial Victor. It's now Laravel 8.77.1 and the tutorial is still relevant with minor differences.
my english not good, but i understand you man... you are amazing :D
Might just be the single best programming tutorial I've ever watched start to finish. Well done mate.
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!
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.
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.
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.
Thanks!
@@MaestroOfTheGame You are quite welcome.
Is this tutorial for Laravel 6???
@@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.
You saved the day. Your answer helped me! Thank you Jesus
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!
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
so you learnt laravel with this despite being at laravel 8
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.
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
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
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"
thank you!!
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.
".,,, 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 !!!
You are my favorite teacher now, Honestly, i learned alot. GOD bless you
please teach us laravel multivendor online store
I'm also interested on this one,although i think this will go way beyond 4:30 hours
@@dimitris86speed np sir if it's convenient for you then otherwise no issues :)
Just completed tutorial using Laravel 9. Awesome lesson!
Did you find any problem using laravel 9 while following this tutorial?
@@churma16 lots of it 😁, but you’ll get through with some few research. For instance, writing the namespace is now different in Laravel 9
please what did you do with 11:41 where he put make:auth, because its not working with me
@@eliendongo9566 I used Laravel ui
Run:
composer require laravel/ui
php artisan ui bootstrap - -auth
npm install
npm run dev
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
This guy is fantastic. Learning so much watching and replicating what's he's doing. Loved to see more of his stuff.
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
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??'
2:51:13
Another way to hide elements you want when unauth,
@guest
"only guest see"
@else
" only auth see"
@endguest
thanks bro👍👍
Blessing bro I was trying to figure out why it wasn't working
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
'vim' is not recognized as an internal or external command
how to fix
@@Puachunan search google for vim; gvim81.exe. ; install follow instruction and restart terminal.
Thank you very much! This solved my problem! (i think the --dev was the issue)
Dude there are so many comments on this, so stop becoming a hero.
@@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.
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!
Help me to install laravel..
Number One in my Laravel developer tutor list. I appreciate him the way he teach.
*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"
Thanks. This worked for me. 😊
TY! Worked!
For Laravel 8, on the make:auth, use
composer require laravel/ui
php artisan ui vue --auth
Thanks! npm is required right after that: npm install && npm run dev
@@highler_law Yes. After that npm install && npm run dev is required
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.
I need to use it on the window. How can I? Thanks.
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.
@@devingray1761 lol i did the same before i learned the trick
One of the best resources I have ever came across on youtube, or elsewhere. Thank you and bless you. These were some well spent 4.5 hours
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!.
I have a few extra bits you may like
@@CODINGISEASY Great thank you I appreciate it, I'll check out your channel.
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. 👍👍👍👏👏👏👏
Could you turn on the automatic subtitles for this video? It wouls help a lot because I'am not good at English listening.
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
this is the best channel ive found on yt
what about mine :( lol
@@CODINGISEASY I thik u also learning from this channel sir So u are watching this tutorial and leave comment over here to promote ur channel
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
could not find driver (sql pragma foreign_keys = on ) how about this error
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
At 1:37:53, if you're using Laravel 8, instead of "Route::get('/p', PostsController@create); " use "Route::get('/p', [App\Http\Controllers\PostsController::class, 'create']);"
just before that the used this:"{{ $user->name }}" if i only print the variable $user i get the ID(in my case number 2) but when I put user behind it like shown in my comment i get:"Trying to get property 'name' of non-object (View: C:\Users\mitch\antartica
esources\views\profile.blade.php)"
public function index($user)
{
User::find($user);
return view('profile',['user' => $user,]);
This is in my profile controller, what am I doing wrong, since you got passed it i thought I'd ask you.
Thanks in advance.
@@mitchelk.3682 Can you send me the time stamp
@@p0_0kie_001 1:10:00
@@mitchelk.3682 Tbh my man I'm not even following this course anymore, first of all it uses very old version of laravel that is very different from version 8. I'm also stuck on another thing and I'm done with endless troubleshooting. If you want a good laravel course here is one I'm currently following: ua-cam.com/video/BXiHvgrJfkg/v-deo.html
Thank you.
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
The second command doesn't work idk why
It’s like you heard my thoughts 😮 thank you for this 😭❤️
Glad to hear, thanks for watching
Well done Victor. I don't know how did I land on your video but I am feeling so lucky. Hats off to you! I wish I could tribute you in a better way.
I am a Java Guru and i never worked with php. You made everything so simple for me. I was able to finish your video in three days and now I am quite good to go with php. Thank you so much!
first 3 seconds in of video and my first framework. excited!!!
yay
This course is outdated. You go from one error to another... Can't follow because a new error pops up on every step
yeah, wasted hours on the first 10 minutes of this video ...
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
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
no wonder why i did it 10times but nothing came up
php artisan migrate is not working
I tried to find solution but no luck
can you help me plz
@@mh5854 controllers*
Thanks for the tip though
watch this for version 7 and above ua-cam.com/video/I9VAwh2XAdQ/v-deo.html
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!
⌨️ (1:30:00) Adding Posts to the Database & Many To Many Relationship
it should be ⌨️ (1:30:00) Adding Posts to the Database & One To Many Relationship
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.
FIX ISSUE at 1:08:45
You might get the error: Class "App\User" not found... Because the newer versions of Laravel has the User.php file in a different path: App\Models\User
Thank you!
thank youuuuuuuuuuuuuu!!!1111
If anyone else has a problem at 3:24:29 with the Follow button not appearing, I had to do a hard refresh with chrome on mac cmd+shift+r after running npm dev watch for it to appear.
I'm having problem with it. How you'd fixed it?
I fixed it, as you have written! Ctrl+shift+r! Thank you very much! Two days i've tried everything, watched so many tutorials for npm, webpack, node.js,...and the follow button didn't appear until i saw your comment! Thank you very much for writing it!
@@biljanabozinova4836 no problem mate! I've been stuck a few times on the video and wished someone had commented the answer 😂
@@biljanabozinova4836 what version of larevel you using
@@TheEdendvatri Laravel 7
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.
Or you could put on your big boy pants and adapt to laravel 6 on the fly :)
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());
}
at 1:55:19 the caption = 'caption' was from Ctrl+D selecting all instances of name = 'name' and changing to 'caption'
Okay so apparently, on 1:52:10 using Laravel 7, you need to do
public function store(Request $request) {
dd($request->all());
}
its still not working for me ..... i think it has a routing problem.. getting this message : "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The POST method is not supported for this route. Supported methods: GET, HEAD." i have being trying to fix this post route..still no hope.. @freecodecamp
@@mathiuibrahim5252
In web.php make sure your route says "post" and not "get"
Route::post('/p', 'PostsController@store');