Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Laravel from Scratch "Contacts App" part 1
Rating: 4.4 out of 5(97 ratings)
1,812 students

Laravel from Scratch "Contacts App" part 1

A free course where you learn Laravel from Scratch
Created byBert De Swaef
Last updated 6/2023
English
English [Auto],

What you'll learn

  • Learning the basics of Laravel
  • Learn about CRUD funcionality in laravel
  • Learn about relations in Laravel
  • Learn about Query builder optimalisation

Course content

1 section10 lectures1h 49m total length
  • Introduction + Installing Laravel11:18

    Set up a new Laravel project from scratch, install Breeze, configure the .env database, run migrations, and start building a contacts app with controllers and models.

  • Creating a Model8:24

    Create a person model with a migration and factory, add soft deletes, and migrate the people table; seed seven records using the factory and create.

  • Creating a Controller13:19

    Create your first Laravel controller with Artisan, bind a model to routes, and configure a resource route group for a contacts app, showcasing index view and basic CRUD setup.

  • Implementing CRUD functions31:35

    Implement create, read, update, delete for a person resource in a Laravel app, including index with table, routes for create, store, edit, update, destroy, with route model binding and validation.

  • Creating a Migration6:24

    Create a new business model and its migration with soft deletes. Add a nullable business_id to the people table to link businesses to people, then set up a factory.

  • One To Many Relationship7:47

    Define a one-to-many relationship between business and person in Laravel, using hasMany and belongsTo, test with tinker, and display related business name in people list with a null-safe operator.

  • Updating our CRUD with Relations9:57

    Learn how to relate people to businesses in a Laravel contacts app by adding a business select to create and edit forms, storing and updating a business_id.

  • Optimisation with Eager Loading6:32

    Discover how to optimize Laravel queries with eager loading, reduce database calls, and implement default eager loading for businesses alongside building basic CRUD for contacts.

  • Custom Requests9:27

    Create a custom request to clean up controllers by moving validation into a reusable business request. It covers authorization, shared rules for store and update, and fillable mass assignment.

  • Working with Deleted Data4:40

    Explore how deleting a business affects related people, using the null safe operator and with trashed to show trashed related data and deleted_at timestamps in Laravel.

Requirements

  • A small understanding of PHP

Description

In this video series, we'll be building a Laravel application from Scratch.

This course is built for those developers starting with Laravel, but it can be a guideline for the more seasoned developers also, they may take a few things here and there, which they may have forgotten over time.


You'll learn how to install Laravel, create your first Model, your first Controller, and migrations. We will also create the linkage between models and controllers with Route Model Binding.

You'll also learn about relations, from the basic and simple "One To Many" relationships over "Many To Many" relationships and even about Polymorphic Relationships.

Throughout this course, we'll be combing all of the above in an application where we'll be using all the CRUD functionalities with the needed optimisations like Eager Loading, Scopes, and many more.


We'll be creating custom commands and learning about the scheduler that Laravel provides for us, to automate processes. And notify users with emails, based on the basic behaviours of the application where we'll be using Observers to catch the actions and trigger our emails within...


In this part, we'll go through the first 10 videos of the series.


If you have any questions feel free to contact us via the socials.

Who this course is for:

  • Beginners, who would like to learn more about Laravel.