
Learn to build a food ordering ecommerce store using PHP, Laravel, MySQL, and Bootstrap. Gain hands-on experience with authentication, cart, checkout, PayPal payments, and an admin panel.
Install xampp to set up a local server with Apache, MySQL, PHP, and phpMyAdmin; use optional Perl. Download from apachefriends.org, run the installer, start the services, and access localhost.
Install Visual Studio Code, the text editor used in this course, by downloading for Windows and running the installer; other editors like php storm or Sublime also work.
Explore the project template to build a food ordering ecommerce store with shop pages, category-based products, register and login, transaction history, update user data, and a shopping cart.
Create a new Laravel project using composer. Run the local server with php artisan serve and configure the .env database settings for MySQL with phpMyAdmin.
Learn to create a Laravel authentication system using the UI package and Bootstrap, scaffold login and register views, configure routes, migrate the users table, and verify login flow.
Load the design by placing CSS, JavaScript, and images into an assets folder and load them with blade directives. Create a template master and dynamic header that adapts to authentication.
Create and insert fake data for a category model in Laravel, define fillable name and image fields, and display the categories on the home page via a controller and view.
Build a category-specific product listing in Laravel by routing to a single category page, retrieving products by category_id, and rendering them in a dynamic blade view with a products controller.
Implement a Laravel single product details page that fetches a product by ID, renders image, description, and price in a Blade view, and enables adding to cart.
Display related products from the same category on the product details page, excluding the current item, by querying the category and iterating results with image, title, and price links.
Link the shop page and display categories with icons, then show products by category using Blade templates and dynamic icons in a Laravel PHP ecommerce store.
Display category-based products on the shop page using Laravel: fetch random 'most wanted' items, add a vegetables category with images, and render with blade templates.
Display fishes and fruits by category on the shop page, updating the controller and assets to show category-specific products and a functional single-product view.
Add items to the cart via a post form and save to the cart. Capture product name, price, image, id, quantity, and user id from session.
Learn to validate add-to-cart actions in Laravel by redirecting to the cart with a success message and disabling the button when the item already exists in the cart.
Add a cart subtotal column and compute it as price times quantity, update the cart creation and view logic, and fetch the user-specific subtotal to display total in the cart.
Learn to delete items from the cart by passing the item id, wiring a delete route, and redirecting back to the cart with a delete success message.
Set up a Laravel checkout flow by posting the cart total to checkout, saving it in a session, validating nonzero totals, and preparing the checkout view.
Learn to build a Laravel checkout view that fetches a user's cart and computes subtotal, shipping, and total. It demonstrates passing data to the checkout blade and preparing the form.
Submit the checkout form via post in PHP Laravel for a food ordering store, creating an order model with customer fields and a default processing status, then route to PayPal.
Learn to set up PayPal payments in a Laravel food ordering store by creating sandbox merchant and buyer accounts, configuring a test app, and integrating the PayPal checkout button.
Make the checkout price dynamic by retrieving it from the session and updating the PayPal flow. After payment, clear the cart, unset the session, and show a success page.
Enforce a secure flow from cart to checkout to payment to success with a custom Laravel middleware that blocks direct access to pay and success pages, preventing page hijacking.
Create a user-specific transaction history page by wiring routes, a users controller, and a blade view. Display the logged-in user's orders with status in the view.
Update the user model and database to enable editing of new details, add a default image, and implement a settings page to display and modify user data.
Update user details via a Laravel post route with the user id; validate required name and email, handle optional address fields, and redirect with a success message.
Learn to clean up a Laravel food ordering ecommerce app by grouping routes with a prefix, and enforce authentication guards on cart, orders, and checkout pages.
Finish wiring user data updates and align the welcome page with the home page, adjust routes and views (about, contact, shop), and test login, cart behavior, and middleware in Laravel.
Design and code a simple, practical admin panel for a food ordering store, including admin login, manage admins, categories, products with image uploads, and viewing and updating orders.
Define and configure guards in Laravel, adding a new admin guard with a corresponding admins provider, create an admin model, and build an admins table to enable admin authentication.
Build an admin authentication system in Laravel pt.2 with routes, controllers, blade templates, a login form guarded by the admin guard, including password hashing and a dashboard redirect.
Demonstrates validating the authentication system with the admin guard, displaying the admin name after login, and conditionally rendering login and logout actions in the header.
Validate the backend authentication in a Laravel food ordering ecommerce store by implementing a custom admin middleware to protect routes and prevent login page access when authenticated.
Build a dynamic Laravel admin index page by counting products, orders, categories, and admins, passing the totals to the blade view and displaying real-time metrics.
Wire a route to the all admins view, adapt the master template, and loop through admin data in the Blade template to display all admins.
Create new admins by building a form, creating a store route and controller, hashing passwords, and redirecting to the admins list with a success message.
Display all categories in the admin section by fetching data from the category model and presenting it in a blade view, ordered by id in descending sequence.
Create new categories by rendering the create form, submitting data to categories.store, and storing name, icon, and image after uploading to the public assets image folder.
Update categories in the admin panel by fetching current data, editing the name and icon in a Laravel Blade form, and submitting via the categories.update post route to save changes.
Learn to delete a category and its image in a Laravel ecommerce app by removing the database record, deleting the image file, and redirecting with a success message.
Build an admin Laravel page that routes to /products, fetches all products ordered by id descending, and renders a blade view showing id, name, price, and expiration date.
Create new products by wiring the products form to a store route, loading categories for selection, uploading images, and handling success messages in a Laravel admin controller.
Delete a product and its image in a Laravel app by passing the product ID, removing the database record and image file, and showing 'Product deleted successfully'.
Learn how to build a fully-functional food ordering ecommerce store with PHP Laravel.
In this course, you will learn the following:
How to install and configure Laravel
How to create a database for your food ordering store
How to create a user registration and login system
How to create a food menu
How to add food items to the cart
How to checkout and process payments
How to implement admin features for managing food items, orders, and users
By the end of this course, you will have the skills and knowledge to build your own food ordering ecommerce store.
Who is this course for?
This course is for anyone who wants to learn how to build a food ordering ecommerce store with PHP Laravel.
What you will need
To take this course, you will need a computer with PHP and Laravel installed. You will also need a MySQL database.
What you will get
Access to the course materials, including video lectures, code examples
A supportive community of learners
The opportunity to build your own food ordering ecommerce store
Sign up today and start learning how to build a food ordering ecommerce store with PHP Laravel!
Here are some additional benefits of taking this course:
You will learn how to use one of the most popular PHP frameworks, Laravel.
You will gain experience in building web applications with PHP.
You will learn how to implement user authentication and authorization.
You will learn how to create a database for your web application.
You will learn how to add and manage content in your web application.
You will learn how to process payments through a payment gateway.
If you are interested in learning how to build a food ordering ecommerce store, then this course is for you!