Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
51いいね 3,569 views回再生

Laravel 9 Tutorial #22 | Create Laravel 9 MultiVendor | Approve Vendors (II) | Display Vendor Detail

Laravel 9 Tutorial from the beginning:-    • Laravel Multi Vendor Tutorial  

In Part-22 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel, we will work on the admins management section in the admin panel in which we will show admins, subadmins and vendors. Super Admin will have full control over it and can make them active/inactive.

In this video, we are going to display complete vendor details in the admin panel so that the admin can verify and approve vendors.

1) Create Route:-
First of all, we will create a GET route with admin id as parameter in web.php file like below:-

// View Vendor Details
Route::match(['get','post'],'view-vendor-details/{id}','AdminController@viewVendorDetails');

2) Create viewVendorDetails function :-
Now we will create viewVendorDetails function to get the complete vendors details including personal, business and bank details. For that, we will create relation between admins and other vendors tables.

3) Create vendorPersonal relation :-
Create vendorPersonal relation in Admin model to create belongsTo relation between admins and vendors table

4) Create vendorBusiness relation :-
Create vendorBusiness relation in Admin model to create belongsTo relation between admins and vendors_business_details table

5) Create vendorBank relation:-
Create vendorBank relation in Admin model to create belongsTo relation between admins and vendors_bank_details table

6) Create viewVendorDetails function :-
Now we will update viewVendorDetails function to include vendorPersonal, vendorBusiness, vendorBank relation to get the complete vendors details including personal, business and bank details.

7) Create view_vendor_details.blade.php file:-
Now we will create view_vendor_details.blade.php file at path /resources/views/admin/admins/ folder in which we will show complete vendor details including personal, business/shop and bank details.

►Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) -    • Laravel Multi Vendor Tutorial  

►Get Ready for Laravel 9 -    • Learning Laravel 9  

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

Popular Stack Developers Series that can help you:-

►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

#laravel9 #laravel9tutorial #laravel

コメント