filmov
tv
Laravel 11 with MongoDB #114 | Display Orders in Admin Panel (I) | Show Users Orders List
Показать описание
This is Part 114 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.
In this part, we will display a list of users orders in the admin panel.
2) Create OrderController:-
Now create OrderController with the below artisan command in the Admin folder:-
php artisan make:controller Admin/OrderController
3) Create Route:-
// Orders
Route::get('orders',[OrderController::class,'orders']);
use App\Http\Controllers\Admin\OrderController;
4) Create orders function:-
5) Include Classes:-
Include the below classes at the top of OrderController:
use App\Models\Order;
use Session;
In the next part, we will show complete order details in the admin panel with ordered products, billing/delivery address, coupon information, and order summary.
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
Follow Stack Developers on Social Media to get updates and resolve your queries
#laravel11 #mongodb #mongodbtutorial