WP Tutorials

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

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

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



Learn Laravel 5.8 by creating an Instagram clone in this full tutorial course for beginners. Laravel is a free, open-source PHP web framework used for creating web applications.

💻Code: https://github.com/coderstape/freecodegram

⭐️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

🎥Course from Coder’s Tape. Check out their YouTube channel for more great Laravel tutorials: https://www.youtube.com/coderstape

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://medium.freecodecamp.org

source

Comments (25)

  1. 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 YouTube channel for more Laravel videos and access to the course code.

  2. stopped at 01:04:00 | 02:00:00

  3. make:auth is missing from my list?

  4. regarding the profile picture i had to set my path to '../storage/{{$user->profile->image}}' because the files save as profile/ and the page is starting at profile/ which meant by links doing /storage would be /profile/storage/profile/, of course the path that actually works is /storage/profile/image, i'm not sure if there is something somewhere i have wrong that affects that becuase the syntax for the part involving the storage saving is different for v11

  5. Is there a new tutorial for Laravel 2024 ?

  6. “You have new mail”

  7. Unfortunately, this tutorial is outdated. for example: PHP artisan make:auth is not used after Laravel 6.0 and now we are at Laravel 11

  8. (8:58) I can't open the http://127.0.0.1:8000 in Chrome beacuse of ERR_CONNECTION_REFUSED, what to do?

  9. Plzzzzz sirrrrr make a video on this topic "laravel 11 push notification firebase "

  10. Hello everyone.

    I am looking for a useful toturial which teaches me Laravel effectively so that I can become a proffesinal developer in Laravel.

    I have been learning the basics of PHP for a a couple of months. Now I've dicided to switch to the most popular framework of PHP that is Laravel so it can makes me more productive and help me create great and impressive webites.

    I wannna ask your opinions about this toturial.

    Can this tutorial meet my needs and make me a professional developer in Laravel for creating and developing websites based on Laravel?

  11. can you list the vscode extensions you used in video?

  12. thank you so much

  13. muchas gracias y excelente video, han cambiado algunas cosas pero en general me sirvio muchisimo

  14. instagram doesn't look like that.

  15. Around 1:40 or so you mention Refactor. But not sure exactly what that accomplishes?

  16. One thing you might do is change your resolution on your screen. Imagine what you see on your screen reduced down onto a small laptop. I cannot read your folders, etc on the left. If you reduce your resolution then it won't be so tiny by the time I see it. Thanks

  17. I would prefer MySQL for lots of reasons. However, does the migration command work in it to create the login and user entries like the SQLite?

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

  19. 2:04:57 still have the SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: posts.title error.

    Can somebody help me?

  20. Hello guys. If you have trouble with artisan tinker at 1:21:30 writing $Profile = new AppProfile(); don't forget to add Models between App and Profiles();
    Like that: $Profile = new AppModelsProfile();

  21. 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

  22. Hm, I'm about half an hour into this tutorial, and it's a shame that the frontend stuff seems to be based around Bootstrap instead of Vue, it feels like a missed opportunity considering a lot of the industry seemingly moving in that direction these days.

Leave your thought here

Your email address will not be published. Required fields are marked *

Enable Notifications OK No thanks