Multiple Authentication In Laravel Without Jetstream | Laravel Tutorial

preview_player
Показать описание
I hope I was able to help you to make multiple authentications in laravel .
If you have any problems don't hesitate to comment. I will reply to you as soon as possible.

Support This Channel :

Your support will be really appreciated.

Thanks For Watching.

I hope This video was helpful.If you have any questions then let me know in the comment section.
Best of luck
.#webtechknowledge

You can connect with me with the given links below:

Follow me on :

Related Tags :

laravel 9 auth without jetstream
Multiple Authentication In Laravel 8 Without Jetstream
laravel 9 authentication
laravel 9 multiple authentication
laravel 9 auth
laravel multiple authentication
authentication in laravel 9
auth system in laravel 9
auth in laravel 9
laravel 9 multi auth
laravel 9 without jetstream
laravel authentication
laravel 9 lesson
laravel 9 custom authentication
laravel auth
authentication in laravel
laravel 9 authentication tutorial
Рекомендации по теме
Комментарии
Автор

public function login(Request $request)
{
$input = $request->all();
$this->validate($request, [
'email'=>'required|email',
'password'=>'required'
]);
$email = $request->input('email');
$password = $request->input('password');

if(Auth::attempt(['email' => $email, 'password' => $password]))
{

if (Auth::user()->is_admin == 1){
return
}
else {
return
}
}
else{
return redirect()->route('login')->with('error', 'Email-Address And Password Are Wrong.');
}

}

DKSTechnology
Автор

why is there no error message Email Address OR Password Are Wrong ?if i enter incorrect it will redirect to login page but no error message?

arevev
Автор

i had a problum (Method does not exist.) erase middlware(is_admin) from the route

fatimakhanfri
Автор

i get error everytime i want to logout ??

nebalal-helou
Автор

I got to 12:13 then realised in my Auth folder, I don’t have all of those controllers.. I only have Controller and Homecontroller... how do I fix this and why was it working?

adea
Автор

code for the login controller the one you have copy and pasted

jeremiahfernandez
Автор

what if the user and admin login simultaneously in the browser

osykrisdayanti
Автор

I found error saying Target class ] doesn't exist

Theicon_x
Автор

public function login(Request $request)
{

$input= $request->all();
$this->validate($request, [
'email'=> 'required|email',
'password'=> 'required',
]);

if(auth()->attempt(array('email'=>$input['email'], 'password'=> $input['password'])))
{
if(auth()->user()->is_admin == 1){
return

else{ return redirect()->route('home');}
}

else{
return redirect()->route('login')
-> whith('error', "email and password are wrong!");
}



}

fatimakhanfri