ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Laravel 11 with MongoDB

mongodb

mongo db

mongodb tutorial

mongoodb laravel tutorial

Laravel MongoDB Tutorial

Overview of MongoDB

install mongodb on windows

setup mongodb on windows

Insert data into MongoDB with Laravel

get data in laravel from mongodb

MongoDB CRUD

laravel 11

laravel 11 tutorial

laravel 11 ecommerce

laravel 11 mongodb

php8

laravel 10 authentication

php full course

laravel

laravel tutorial

MongoDB Tutorial

laravel 10 course for beginners

laravel multi vendor

Автор: Stack Developers

Загружено: 2024-09-07

Просмотров: 50

Описание: ►Laravel 11 Tutorial (with MongoDB):    • Laravel 11 Tutorial (with MongoDB)  

This is Part 109 of the Laravel 11 Tutorial, in which we are building the e-commerce website with Laravel as the front end and MongoDB as the back end. We will continue working on the order placement process.

In this part, we will place order and insert order details in orders and orders_products tables.

Update checkout function :-
We will update checkout function step by step for inserting the order details in orders tables.

1) First of all, we will add a check to ensure the user selects one of the delivery addresses as default.

2) Add condition to assign COD in payment_method variable if payment_gateway is COD otherwise Prepaid in all other cases like Paypal or any others in future.

3) Finally insert delivery address, coupon, shipping details, grand total, payment method etc. in orders table.

We will first get the total price to calculate the grand total after deducting coupon amount. Later on we will also calculate shipping charges and will add to grand total.

4) Insert all user cart items in the orders_products table in foreach loop.

5) Include below header statements at the top of ProductController:-
use App\Models\Order;
use App\Models\OrdersProduct;
use DB;

6) Add getAttributeSKU function in ProductsAttribute model:-

Now check in video; orders details get inserted into orders and orders_products tables.

►Click here to subscribe for Laravel & other updates -    / stackdevelopers  

Popular Stack Developers Series that can help you:-

►Laravel 11 PostgreSQL Tutorial:    • Laravel PostgreSQL Tutorial  

►Laravel 10 Tutorial:    • Laravel 10 Tutorial: Make Admin Panel / E-...  

►Laravel Multi-Vendor E-commerce Series -    • Laravel Multi Vendor Tutorial  

►React JS Tutorial for Beginners with Laravel -    • React JS Tutorial with Laravel for Beginners  

►Laravel Tutorial for Beginners -    • Laravel Tutorial for Beginners | Advance E...  

►GIT Tutorial for Beginners -    • Git Tutorial for Beginners | Create your F...  

►Laravel API Tutorial -    • Laravel API Tutorial | Create API from Scr...  

►Laravel Interview Questions -    • Laravel Interview Questions & Answers | 20...  

►jQuery Tutorial -    • jQuery Tutorial  

►Laravel Basic E-commerce Series -    • Make Admin Panel / E-commerce Website in L...  

►Laravel Dating Series -    • Make Dating / Social Networking Website in...  

►Join this channel to get the complete source code of all series:
   / @stackdevelopers  

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates -   / stackdevelopers2  
►Join Facebook Group to resolve your queries -   / stackdevelopers  
►Follow on Instagram -   / stackdevelopers2  
►Follow on GitHub - https://github.com/stackdevelopers

#laravel11 #mongodb #mongodbtutorial

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Laravel 11 with MongoDB

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]