ReactJS Ecom Part 7: Admin Login in ReactJS / User Role as admin w/ Token Ability| Axios Interceptor

preview_player
Показать описание
In this video, I have taught How to make the User role as admin using Laravel Sanctum Token Abilities. Where we are checking the User is authenticated or not with AXIOS Interceptor. The condition to check the Logged in User is admin or not, we have created a Middleware in Laravel application to verify the User is admin or not. for more detailed understanding, watch the Video.
admin login in reactjs

#axios_inteceptor #admin_login_in_reactjs #reactjs_laravel_admin_Middleware #403_forbidden #404_Error_Page

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

God bless you Sir... I am happy watching the video series

melfordbirakor
Автор

The course is going very good. I take some error for ı used react router dom v6 but ı fix that errors. Thank you for this lessons

teknofatih
Автор

I think if you should share files after every video you make it will be amazing for us because of debugging. I get so many problems and its hard to find where I did mistake in video.

karamguliyev
Автор

please finish this .Order, adding products. everything. will be thankful

alexnganga
Автор

Thanks again for your videos sir !
I definitively had some troubles with the axios.interceptor : for example the 403 error is Ok in my network inspector, but the code inside the interceptor (sweet alert and redirect with history) never works.
I am redirected to homepage as a no-admin who tries to connect to dashboard, which is a correct thing, but not redirect to page 403.
And in the case of 404 error, I'm not redirected at all. So I solutionned it with the Switch in my Router, but definitively it's not the way you show it...
And have no ideas of what is happening in my code 🤔...

yannpollet
Автор

Why are you changing db structure directly? In stead of using laravel migration files??

mirtanvirahmed
Автор

waste of time ... how to setup admin and user html template you don, t show that

tanvirnawaz