Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Laravel 8 – Build a shopping cart & deploy it on Cloudways
Rating: 4.4 out of 5(265 ratings)
13,668 students

Laravel 8 – Build a shopping cart & deploy it on Cloudways

Learn how to build a Laravel project & Deploy it using Cloudways
Created byDary Nazar
Last updated 11/2021
English

What you'll learn

  • How to setup Controllers, Models, Migrations & Routes
  • Setup database seeders
  • Storing images correctly through the storage
  • Building the frontend from an existing repository
  • Making our pages dynamic
  • Saving products into a session
  • Deleting products from a session

Course content

2 sections30 lectures1h 49m total length
  • Introduction4:08

    This video will show you how you what we will be doing in this course.

  • Promo video!0:44

    Learn by building a shopping cart with Laravel 8 and deploy it on Cloudways in two hours, focusing on practical projects to solidify your skills.

  • Creating our GitHub repository + Laravel project5:11

    In this video, we will be setting up our GitHub repository and Laravel project.

  • Creating all Models, Controllers, Migrations & Routes5:21

    In this video, we will be creating all necessary controllers, model(s), migrations and routes.

  • Setting up our database & credentials2:48

    In order to interact with your migrations, you need to setup your database! In this video, we will be creating our database and adding our Database credentials in the .env file.

  • Setting up our Migrations & Data structure4:08

    In order to add products to the shopping cart, we do need to have products inside our database. In this video, we will be setting up our migration.

  • Creating database Seeding6:35

    I don't want to add products into my database through an interface but I rather use a Database Seeder that we can also run on Cloudways!

  • Storing images1:44

    There are different methods on how you should store images in Laravel. I personally recommend using a symbolic link, which we will setup in this video.

  • Building the frontend statically8:06

    I have already created a static frontend in HTML and Tailwind to save us time. In this video, we will be integrating that project into our current project.


    Link to repository:

    https://github.com/codewithdary/laravel-shopping-cart-static

  • Making our Shop dynamic6:58

    We will be taking it a step further in this video by making our shop dynamic by adding our Database Products into the shop.

  • Saving products to our session7:47

    In this video, we will be saving products into our session which we can access in the shopping cart.

  • Making our cart dynamic5:14

    Based on the session that we filled in the previous video, we'll be printing it out inside our shopping cart.

  • Deleting products from cart3:53

    In this video, we wil be setting up the "Delete" shopping cart item.

  • Exercise: Create “update quantity" functionality0:31

    Exercise time! I want you to create the update cart quantity functionality. I have added the solution inside my GitHub repository + documentation so let me know what you have done differently.

  • 2 Common errors when deploying to the Cloud1:20

    Whether you like it or not, errors will happen when your either programming or deploying code to the Cloud. Over the years, I have used the cloud quite a lot and there are two errors that keep occurring every once in a while, when I deploy a Laravel project. I quickly want to show it before we continue on.

  • Adding our code to GitHub1:45

    Before we can continue on to the next section in this course, which is deploying the code on Cloudways, we do need to make sure that our GitHub repository is up to date.

  • Adding our storage to GitHub0:53

    By default, GitHub excludes the hidden folder/files. Let's make sure that we push the images to GitHub as well.

Requirements

  • Basic Laravel knowledge
  • Low level HTML & CSS/TailwindCSS knowledge
  • Object-Oriented Programming

Description

Have you been trying to learn Laravel and are you ready to take it a step further by creating a shopping cart? Try this 2-hour free course out!


Who this course is for

· People who are looking for web programming jobs

· People who want to learn everything about Laravel

· People who struggle with projects

· People who want to learn how to host a Laravel project on Cloudways


Version numbers of this project

· Laravel 8.7

· Tailwind 2.0


What will we do?

Laravel is one of the most popular PHP frameworks out now. Learning the fundamentals of a language is one thing, but learning through real-life projects is another. In this course, we will be creating the following:

· Basic home page

· Shop page that shows all products

· Specific product page

· Shopping cart


What will you be learning in this course?

· How to setup Controllers, Models, Migrations & Routes

· Setup database seeders

· Storing images correctly through the storage

· Building the frontend from an existing repository

· Making our pages dynamic

· Saving products into a session

· Deleting products from a session


What will we not be doing?

Udemy courses can be a maximum of 2-hours, so I had to cut some parts out of this tutorial. We won’t be creating the following:

· Authentication

· A payment system

· A total amount overview

Working on local projects is awesome when you are a beginner. But what comes after? We will be using a cloud managed hosting platform called Cloudways to host our project simply in a couple steps, into the cloud!

Who this course is for:

  • People who are looking for web programming jobs
  • People who want to learn everything about Laravel
  • People who struggle with projects
  • People who want to learn how to host a Laravel project on Cloudways