#26 Laravel 8 API Tutorial | API Registration (I) | Register User on Multiple Websites at same time
Автор: Stack Developers
Загружено: 2021-11-13
Просмотров: 622
Описание:
This video is a part of my Laravel API Tutorial
►Click here to access the complete course: • Laravel API Tutorial | Create API from Scr...
►Click here to subscribe - https://www.youtube.com/stackdevelope...
Other Popular Stack Developers Series that can help you :-
►Laravel Advance E-commerce Series - • Laravel Tutorial for Beginners | Advance E...
►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...
►GIT Tutorial for Beginners - • Git Tutorial for Beginners | Create your F...
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
In Part-26 of Laravel 8 API Tutorial, we will start working on the API Registration process to register Users on multiple websites at the same time.
Sometimes we require to register the user at multiple websites at the same time. At that time, we require to build a Registration API for both the websites that will register users at both websites.
Like:-
If a user registers at the 1st website then the user will also get registered to the 2nd website automatically with API.
We have 2 Laravel E-commerce websites, one is stackdevelopers.in and another one is stack-developers.xyz
When a user registers at stackdevelopers.in then the user will also get register at stack-developers.xyz and when a user registers at stack-developers.xyz then the user will also register at stackdevelopers.in
In this video, we will do this task offline. We will run both basic and advance e-commerce websites offline and register at both websites when user register at any of the website.
1st website (Update at Advance E-commerce Website)
1) Update registerUser function
At register function, after saving user, create curl to pass user data
to 2nd website.
2nd website (Update at Basic E-commerce Website)
2) Create Route:-
Create post route to register a user at basic e-commerce website in api.php file like below :-
// Register User from Laravel Advance E-commerce
Route::match(['get','post'],'/register-user', 'APIController@registerUser');
3) Create registerUser function:-
Now, create registerUser function at APIController to register the user at basic e-commerce website from advance e-commerce website.
We will register the user on the 2nd website i.e. Basic E-commerce Website, User will automatically get registered at the same time on the 1st website i.e. Advance E-commerce Website.
#laravelapitutorial #laravel8api #laravelapitypes #laravelapiexamples #laravelapi
Learn to make Laravel E-commerce website :-
• Laravel Tutorial for Beginners | Advance E...
Join this channel to get complete code/support:
/ @stackdevelopers
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: