Laravel 8 – Build a shopping cart & deploy it on Cloudways
- Description
- Curriculum
- FAQ
- Reviews
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!
-
1IntroductionVideo lesson
This video will show you how you what we will be doing in this course.
-
2Promo video!Video lesson
-
3Creating our GitHub repository + Laravel projectVideo lesson
In this video, we will be setting up our GitHub repository and Laravel project.
-
4Creating all Models, Controllers, Migrations & RoutesVideo lesson
In this video, we will be creating all necessary controllers, model(s), migrations and routes.
-
5Setting up our database & credentialsVideo lesson
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.
-
6Setting up our Migrations & Data structureVideo lesson
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.
-
7Creating database SeedingVideo lesson
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!
-
8Storing imagesVideo lesson
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.
-
9Building the frontend staticallyVideo lesson
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
-
10Making our Shop dynamicVideo lesson
We will be taking it a step further in this video by making our shop dynamic by adding our Database Products into the shop.
-
11Saving products to our sessionVideo lesson
In this video, we will be saving products into our session which we can access in the shopping cart.
-
12Making our cart dynamicVideo lesson
Based on the session that we filled in the previous video, we'll be printing it out inside our shopping cart.
-
13Deleting products from cartVideo lesson
In this video, we wil be setting up the "Delete" shopping cart item.
-
14Exercise: Create “update quantity" functionalityVideo lesson
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.
-
152 Common errors when deploying to the CloudVideo lesson
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.
-
16Adding our code to GitHubVideo lesson
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.
-
17Adding our storage to GitHubVideo lesson
By default, GitHub excludes the hidden folder/files. Let's make sure that we push the images to GitHub as well.
External Links May Contain Affiliate Links read more