Laravel 11 Multi Guard Authentication Tutorial | Multiple authentication for User & Admin in Laravel

  Рет қаралды 27,256

Funda Of Web IT

Funda Of Web IT

Күн бұрын

Пікірлер: 38
@dreddnocturnal256
@dreddnocturnal256 26 күн бұрын
Thank you so much Funda of Web IT. You are part of my coding journey since last year. This is exactly what I've been looking for a week now. Though I have to change something like admin registration would be inside the admin dashboard and also add registration for managers.
@omprakashn8627
@omprakashn8627 7 ай бұрын
Great video! Explained very clearly step by step. Thank you.
@MdNajmulHasan-by7bv
@MdNajmulHasan-by7bv 12 күн бұрын
thank you so much.
@rahmasamy7463
@rahmasamy7463 4 ай бұрын
Is that the best way for check role or make user in one table and add attribute for checking roles by middle ware ?
@datafaeri
@datafaeri 2 ай бұрын
kzbin.info/www/bejne/pZjJeYJ4Zp1-ftU
@engineer_ajang
@engineer_ajang Күн бұрын
I tried to add a third system but it didn't work 😕
@eebiru657
@eebiru657 Ай бұрын
This video is so great and i learned a lot of things from this, but the only problem i'm having is that when i logged in as admin i can still search /dashboard from the user but an error occurs says route[login],
@RosyLaventura
@RosyLaventura 4 ай бұрын
can you do 3 users, 3rd one is owner?
@a.aliyev1036
@a.aliyev1036 6 ай бұрын
Great job
@andymasarque4004
@andymasarque4004 5 ай бұрын
Hi. How can I add the import button when I right click?
@fundaofwebit
@fundaofwebit 5 ай бұрын
Please install the extension: PHP Namespace Resolver
@lailasari4232
@lailasari4232 Ай бұрын
hello, i’ve tried your tutorial and it works but how to make a respective navigation for each user ?
@jasbinkarki6648
@jasbinkarki6648 Ай бұрын
1. way is to check the login user type and display only those nav bar which a user can access using @can(check your user type_ then show the view. 2. also add same condition if (auth()->user()->type is admin) return view(admin page) else regular page
@ishaqhaj6783
@ishaqhaj6783 3 ай бұрын
Hey, but anyone can be an admin, if someon try like website/admin
@two-zero
@two-zero 6 ай бұрын
Thank you bro.
@pkp4761
@pkp4761 5 ай бұрын
would this work without laravel breeze?
@datafaeri
@datafaeri 2 ай бұрын
kzbin.info/www/bejne/pZjJeYJ4Zp1-ftU
@waleedeassa889
@waleedeassa889 4 ай бұрын
Thank you sir . how can apply Authentication and Redirect if authenticated Middlewares ?
@datafaeri
@datafaeri 2 ай бұрын
kzbin.info/www/bejne/pZjJeYJ4Zp1-ftU
@avishkabandara6453
@avishkabandara6453 4 ай бұрын
useful video
@rafaelbani8892
@rafaelbani8892 5 ай бұрын
why i dont have auth folder on my app folder?
@fundaofwebit
@fundaofwebit 5 ай бұрын
Please run the below 2 commands: 1. composer require laravel/breeze --dev 2. php artisan breeze:install blade That's it. You will find all the auth files.
@skyand_fly
@skyand_fly 5 ай бұрын
Why i dont have auth.php?
@fundaofwebit
@fundaofwebit 5 ай бұрын
@skyand_fly Please run the below 2 commands: 1. composer require laravel/breeze --dev 2. php artisan breeze:install blade That's it. You will find the auth.php file under routes folder.
@skyand_fly
@skyand_fly 5 ай бұрын
@@fundaofwebit thank you! I found you video about breeze logining. You have good content. Don't stay. Hello from Russia
@skyand_fly
@skyand_fly 5 ай бұрын
@@fundaofwebit I do not understand how to do it if the user goes to the admin panel so that he is redirected to the login page for the administrator (admin/login) and not the general login page (/login)
@fundaofwebit
@fundaofwebit 5 ай бұрын
​@@skyand_fly If you access (/admin/dashboard), and wanted to redirect to (/admin/login) page. follow below steps: 1. Go to bootstrap/app.php 2. in the ->withMiddleware() function. add these code : $middleware->redirectGuestsTo(function (Request $request) { if ($request->is('admin/*')) { return route('admin.login'); } return route('login'); }); 3. That's it.
@skyand_fly
@skyand_fly 5 ай бұрын
​@@fundaofwebit thank you, but this doesnt work((
@vm_____rr1
@vm_____rr1 3 ай бұрын
This is insane. I don't know how is this still a trending in development world!! 😢 Every development tutorial maker is making two authentication pages (register page for custom user and other page for Admin and login pages the same!) So, what they mean is that if i have 7 user's it mean i have to prepare 7 registration pages for each user. Instead of using only one route for login and registration.
@archiealvarado8831
@archiealvarado8831 2 ай бұрын
he teaches to complicated.
@tvjklove4556
@tvjklove4556 7 ай бұрын
Sir can you share this code please?
@datafaeri
@datafaeri 2 ай бұрын
kzbin.info/www/bejne/pZjJeYJ4Zp1-ftU
@getcsefied4184
@getcsefied4184 5 ай бұрын
Sir , first of all huge thanks to u , for this effort...multi role in next video means , are u referring spatie video ? @fundofwebit
@datafaeri
@datafaeri 2 ай бұрын
kzbin.info/www/bejne/pZjJeYJ4Zp1-ftU
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
03. Laravel 11 E-Commerce Project - Admin and User Authentication
21:19
Auth Multi Roles Login with Custom Middleware in Laravel 9
16:50
Cambo Tutorial
Рет қаралды 53 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН