ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Laravel 9 Tutorial #9 | Create Multi Vendor in Laravel 9 | Admin Login (II) | Admin Login with Guard

laravel9

laravel 9 tutorial

create multi vendor ecommerce website

create laravel 9 website

multi-vendor ecommerce in laravel 9

laravel 9 ecommerce

multi vendor

multi vendor ecommerce

multi seller ecommerce

multiseller ecommerce tutorial

laravel 9 series

learn laravel 9

make multivendor ecommerce laravel

multivendor laravel

admin login

admin login with auth guard

admin login with guard

laravel 9 guards

laravel 9 auth guard

login with guard laravel 9

Автор: Stack Developers

Загружено: 2022-02-28

Просмотров: 7169

Описание: Laravel 9 Tutorial Complete Playlist:-    • Laravel Multi Vendor Tutorial  

In Part-9 of the Laravel 9 Tutorial to create a Multi Vendor E-commerce Website in Laravel, we will work on admin login and logout functionality. We will register the admin guard every time when an admin logs in and forget it every time when the admin logs out from the admin panel.

1) Update login.blade.php file:-
First of all, we will update the login.blade.php file to update the Login form. We will set its action, CSRF token, the username (email) and password.

2) Update login function :-
Now we will update the login function at AdminController. We will add the condition for posted data and use the guard for admin login as shown in the video.

You can try login in with username [email protected] and password 123456 that we have set in the last video with Seeding.

Once logged in, we will redirect the user to the Dashboard page and if the username or password is incorrect then we can redirect back the user and flash the error message on the admin login page.

3) Update header.blade.php file:-
Remove all unwanted code and add the "Logout" link for the user at the top right side of the header as shown in the video.

4) Create Route:-
Now we will create a GET route for Admin Logout in the web.php file like below:-

// Admin Logout
Route::get('logout','AdminController@logout');

5) Create logout function:-
Now we will create a logout function in AdminController in which we will unset the admin guard as shown in the video.

6) Update login.blade.php file:-
Update the login.blade.php file to show the error message if the admin user or password is incorrect.

We can get the "error message alert bootstrap" script from the below website:-
https://getbootstrap.com/docs/4.0/com...

Now check in the video, we are able to login into the admin panel with Guard and log out as well. If the username or password is incorrect then we are displaying an error message on the admin login page.

In the next video, we will add Laravel validations for the admin login form.

Thanks for watching :)

►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

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Laravel 9 Tutorial #9 | Create Multi Vendor in Laravel 9 | Admin Login (II) | Admin Login with Guard

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]