Laravel 8 E-commerce Part 3 : How to make Admin Middleware and redirect admin to admin dashboard

preview_player
Показать описание
In this video, you will learn how to make create admin middleware and set the route for admin. When a user will log in, is he is an admin he will be redirected to the admin dashboard else he will be redirected to the home page.
In this video, we will also register all our controllers globally so that we don't have to register each controller one by one.

Blog link :

If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
Thanks for watching

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

Mann youre a life saver 😭😭😭😭 thank you so much 🥺 if i get a job ill pay for this help as much as i can

creepernoodles
Автор

Nice video. It's very clear to understand brother.

fundaofwebit
Автор

I have a problem in "LoginController.php" : AuthenticatesUsers doesn't work however, i have "use on top pff the file. Help me please (?)

joanamendes
Автор

please help, my app folder has no kernel.php, what should I do?

tanbryanlloydt.
Автор

Your'e doing a great work bro, please when trying to "import class" for instance Auth, whenever i right select it and right click my is not showing all those menus yours display. therefore i cannot import class, please what should do? thanks in anticipation

rotimiidowu
Автор

When i login to admin it's show 419 Page Expired, What should i do?

worlwide
Автор

8:32
when i login i does not takes me to home page ...its takes me to dashboard...solution plzz

samsussalekin
Автор

I don't know why but I got 0 as admin and 1 as user in database. Everything is fine :)

sakarvaidya
Автор

Your Link is not working . Please give the link again

emonbakhtiar
Автор

and you didn't explain please show me how did you redirect !

simonsrabon
Автор

How to prevent admin access the user page? Please I need answer for our project 😭

annbonador
Автор

I am stuck on dashboard after following your tutorial plz help me to get out from it. When i login with user it redirect me to dashboard only. The only solution is remove admin from user table. Plz help me

hasnainazizi