Laravel 9 Tutorial #105 | User Registration Process (I) | Convert HTML to Laravel blade

preview_player
Показать описание
In Part 105 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel 9, we will start working on the user register/login process with default Web Auth.

For Vendors, we have used guards and now for Users, we are going to use default Web Auth.

User Login/Registration Process is as below:-
1) Embed User Login/Registration form/design
2) Register/Insert user in users table if not already exists
3) Apply Laravel Ajax Validations for User Register Form
4) Send User Register Email Offline
5) Send User Register SMS Offline
6) Apply Validations for User Login Form
7) Auth::attempt to login user

In this video, we are going to embed the User Login/Registration form/design.

1) Create Route:-
// User Login/Register

2) Create UsersController:-
Now create UsersController at /app/Http/Controllers/Front/ with below artisan command :-
php artisan make:controller Front/UsersController

3) Create loginRegister function :-
Now create loginRegister function in the newly created UsersController.

We will now update the users table with migration.

5) Update users table (With Migration) :-
First of all, we will run the below command to create a migration file in which we are going to add new columns for the users table.

php artisan make:migration add_columns_to_users

Now we will add required columns like mobile, address, city, state, country, pincode and status for users table in migration file.

Now we will run the below command to add columns in the users table :-
php artisan migrate

Check users table is updated with additional columns.

In the next video, we will register a new user and insert in users table.

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

#laravel9 #laravel9tutorial #laravel
Рекомендации по теме
Комментарии
Автор

Great job sir! Please add coupon code method in this project

programmersohan
Автор

Sir, the attribute of the smartphone category on the multi vendor ecomers website does not match the attribute of the t shirt category, right?How to add attributes related to each category. Can you tell us that, thank you very much 🙂

Booming
visit shbcf.ru