An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
Laravel 9 Tutorial 25
Laravel 9 Tutorial Complete Playlist:- https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
In Part-25 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel, we will create countries table for countries select box that we will use for vendor personal and business information and later use for frontend as well.
1) Import countries table:-
First of all, we will search and import countries table. We can search in Google for keyword like "countries MySQL" and open the below link:-
https://github.com/raramuridesign/mysql-country-list/blob/master/mysql-country-list.sql
Simply copy and paste MySQL code in Phpmyadmin and we will rename the apps_countries table to the countries table.
2) Create Country Model:-
Create Country model by running below command:-
php artisan make:model Country
3) Update updateVendorDetails function :-
Now we will get all countries from the countries table in the updateVendorDetails function in AdminController and return to the update_vendor_details blade file.
4) Include Country model:-
Include Country model at the top of AdminController like below:-
use App\Models\Country;
5) Update update_vendor_details.blade.php file:-
Now we will replace the country text field with a select box and add foreach loop to show all countries in countries select box in vendor personal and business form.
In next video, we will work on change password functionality.
Thanks for watching :)
Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
Get Ready for Laravel 9 - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYVb9lco6OnloSFyBLZU3tz
Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u
GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R
Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU
jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA
Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7
Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf
Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
Follow on Instagram - https://www.instagram.com/stackdevelopers2/
Follow on GitHub - https://github.com/stackdevelopers
Original Link: https://dev.to/stackdevelopers/laravel-9-tutorial-25-38p0
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To