Laravel 8 Blog Admin Panel - 3: Setup Admin & User Login with Middleware & redirect | multi auth

  Рет қаралды 35,245

Funda Of Web IT

Funda Of Web IT

Күн бұрын

In this video, I have taught how to make login and register auth in laravel. Also how to setup admin and user login with middleware and redirect them to different pages in laravel. Laravel 8 multi auth.
Custom User and Admin login with role using middleware in laravel 8.
Get the Source Code:
www.fundacodes...
Playlist of Laravel 8 Blog Project:
• Laravel 8 Blog Admin P...
Follow us on Instagram: / funda_of_web_it
Subscribe to my Hindi/Urdu Channel: / fundaofwebithindi

Пікірлер: 37
@davidbrook-d2o
@davidbrook-d2o Жыл бұрын
bro you are the only one in whole youtube who explain with this clarity ♥
@dagocjohncarlw.247
@dagocjohncarlw.247 Жыл бұрын
It is possible if separated login ? Like for users is mobile app and admin is website?
@godstimeyusuff7572
@godstimeyusuff7572 2 жыл бұрын
What if you want to add 1 more additional user?
@Ahmed-kl7kd
@Ahmed-kl7kd Жыл бұрын
Superb
@riksonramalho6469
@riksonramalho6469 Жыл бұрын
Perfect. 😍🤓
@NayskomMedia
@NayskomMedia 2 жыл бұрын
Will there be a course on creating a blog using react js and laravel?
@fundaofwebit
@fundaofwebit 2 жыл бұрын
Yes. Will be creating after this course.
@sarait1519
@sarait1519 Жыл бұрын
still have access to the dashboard, where is the error ? Route::prefix('admin')->middleware(['auth'])->group(function(){ Route::get('/dashboard', [App\Http\Controllers\Admin\DashboardController::class, 'index']); });
@dailyanimeworld982
@dailyanimeworld982 2 жыл бұрын
what extension are you using in this tutorial?
@almoatazbellahmostafa1750
@almoatazbellahmostafa1750 Жыл бұрын
PHP Namespace Resolver
@dhimanscorner9333
@dhimanscorner9333 2 жыл бұрын
Sir when you clicked on a home button it is not going to the admin dashboard. video time 17:42
@Starwishas
@Starwishas 2 жыл бұрын
at the end, why i cant go to admin/dashboard but to /login? and the page is expired
@Berettadr
@Berettadr 2 жыл бұрын
I cant redirect to admin/dashboard page if I login in as admin ?
@basel495
@basel495 2 жыл бұрын
Is there lesson about guards ..?
@maryamechoujjaa9606
@maryamechoujjaa9606 Жыл бұрын
Attempt to read property "role" on null how to fix it sir
@spacelover2868
@spacelover2868 2 жыл бұрын
complete 😃😃😃😃
@gypsy762
@gypsy762 2 жыл бұрын
i get error "Attempt to read property "headers" on null" when i direct to admin/dashboard as an user how to fix it ?
@fundaofwebit
@fundaofwebit 2 жыл бұрын
This error comes in middleware. And it occurred while checking the if condition, if it fails you can abort(403).
@learner5387
@learner5387 2 жыл бұрын
I am following this today when laravel 9 is released. After adding a column when i run php artisan migrate give me error on console : C:\xampp\htdocs\wordpress\laravel\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501 PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists") 2 C:\xampp\htdocs\wordpress\laravel\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501 PDOStatement::execute() Can you please help me?
@vamshipatel5064
@vamshipatel5064 Жыл бұрын
php artisan migrate:fresh
@annbonador
@annbonador 2 жыл бұрын
How about preventing the admin from accessing the user page
@manmohansinghbhanwal3065
@manmohansinghbhanwal3065 Жыл бұрын
mera user logout nahi ho pa rha hai baki sab ho gya please help anyone
@happychristian1389
@happychristian1389 2 жыл бұрын
extension name for importing class?
@ismailhosain7514
@ismailhosain7514 2 жыл бұрын
php namespace resolver
@selmoraaa
@selmoraaa Жыл бұрын
can i get source code? link not work
@josemanuelherrero6495
@josemanuelherrero6495 2 жыл бұрын
Por favor, A qué se debe este error?
@josemanuelherrero6495
@josemanuelherrero6495 2 жыл бұрын
TypeError PHP 8.1.2 9.16.0 Illegal offset type
@tareksouid267
@tareksouid267 2 жыл бұрын
Target class [App\Http\Controllers\Admin\dashboardController] does not exist.
@fundaofwebit
@fundaofwebit 2 жыл бұрын
This DashboardController doesn't exist in your controller folder. If you have created it. The check the spelling of it.
@spacelover2868
@spacelover2868 2 жыл бұрын
17:40 not working bro its redirect to home
@fundaofwebit
@fundaofwebit 2 жыл бұрын
Check your role_as in users table, it should be 1 for admin. Or you might be login with wrong user role_as
@spacelover2868
@spacelover2868 2 жыл бұрын
@@fundaofwebit spelling mistake 🤯role_as to role_us 😪😪😪😪😪
@nareshthakur2392
@nareshthakur2392 Жыл бұрын
bhai kuch samajh ni aya
@พัฒนธรไฝพรหม-น4น
@พัฒนธรไฝพรหม-น4น 2 жыл бұрын
Illuminate \ Contracts \ Container \ BindingResolutionException Target class [isAdmin] does not exist.
@พัฒนธรไฝพรหม-น4น
@พัฒนธรไฝพรหม-น4น 2 жыл бұрын
Who have problem like me ?
@fundaofwebit
@fundaofwebit 2 жыл бұрын
You have not assigned the middleware in kernel.php file. The is error is starting from your web.php file in middleware.
@kamaljeetsunariya
@kamaljeetsunariya 2 жыл бұрын
Sir send code
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,2 МЛН
Jetstream/Fortify Multi-Auth: Roles, Permissions and Guards
19:00
Laravel Daily
Рет қаралды 100 М.
SC001 - Laravel 8 Multi Auth based on Roles
41:03
Sawa Stacks
Рет қаралды 48 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 140 М.