Тёмный

Multiple Authentication In Laravel Without Jetstream | Laravel Tutorial 

Web Tech Knowledge
Подписаться 26 тыс.
Просмотров 17 тыс.
50% 1

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 :
Join this channel to get access to perks: / @webtechknowledge
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:
Please Subscribe to this channel: / @webtechknowledge
Join this channel to get access to perks: / @webtechknowledge
Follow me on :
Facebook Link: / yaminshakil07
Instagram Link: / yamin_shakil
Twitter Link: / yaheashakil
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

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@DKSTechnology
@DKSTechnology 3 года назад
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 redirect()->route('admin.home'); } else { return redirect()->route('homehome'); } } else{ return redirect()->route('login')->with('error','Email-Address And Password Are Wrong.'); } }
@Theicon_x
@Theicon_x 9 месяцев назад
Why I got error
@lazarristic8061
@lazarristic8061 2 года назад
perfect straight to problem solving
@fatimakhanfri8592
@fatimakhanfri8592 3 года назад
it was so useful thanks !
@navaneethsujeevan7034
@navaneethsujeevan7034 3 года назад
Thanku helpful😍
@susmithar5627
@susmithar5627 3 года назад
thank you its is very useful
@sreythinhloem3332
@sreythinhloem3332 Год назад
thank you for sharing
@moinkhan8573
@moinkhan8573 2 года назад
very helpful video
@gurmandeep4417
@gurmandeep4417 2 года назад
Nice way 👍
@adea8863
@adea8863 3 года назад
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?
@WebTechKnowledge
@WebTechKnowledge 3 года назад
Run "php artisan ui bootstrap --auth" again. This may solve your problem
@arevev
@arevev 2 года назад
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?
@TheDipaliDiaries
@TheDipaliDiaries 3 года назад
isadmin column is not reflected. ???
@fatimakhanfri8592
@fatimakhanfri8592 3 года назад
i had a problum (Method Illuminate\Routing\Route::middleware does not exist.) erase middlware(is_admin) from the route
@nebalal-helou8601
@nebalal-helou8601 2 года назад
i get error everytime i want to logout ??
@Theicon_x
@Theicon_x 9 месяцев назад
I found error saying Target class [App\Http\Controller\Auth\Request ] doesn't exist
@Theicon_x
@Theicon_x 9 месяцев назад
I have solve it😅😅
@8294685725
@8294685725 2 года назад
Which is best ? Jetstream or this
@WebTechKnowledge
@WebTechKnowledge 2 года назад
Jetstream
@technophileit711
@technophileit711 2 года назад
Npm install akunnilla
@jeremiahfernandez8854
@jeremiahfernandez8854 2 года назад
code for the login controller the one you have copy and pasted
@osykrisdayanti4735
@osykrisdayanti4735 3 года назад
what if the user and admin login simultaneously in the browser
@WebTechKnowledge
@WebTechKnowledge 3 года назад
If you are logged in as a user then you have to logout first to login as a admin. Only one type of user can login at a time and that's make the system more secure.
@technologicaldream702
@technologicaldream702 2 года назад
@@WebTechKnowledgethat means when a user logged in, then the admin cannot login. if the user logged in and also admin want to login at a time , the user must be logged out.
@WebTechKnowledge
@WebTechKnowledge 2 года назад
Yes
@technologicaldream702
@technologicaldream702 2 года назад
@@WebTechKnowledge what about admin and user logged on at a time which does not logout automatically user
@fatimakhanfri8592
@fatimakhanfri8592 3 года назад
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 redirect()->route('admin.home');} else{ return redirect()->route('home');} } else{ return redirect()->route('login') -> whith('error',"email and password are wrong!"); } }
@chamseddinehammami7591
@chamseddinehammami7591 3 года назад
asa
Далее
Эконом такси в твоем городе 😂
00:59
УДОЧКА ЗА 1$ VS 10$ VS 100$!
22:41
Просмотров 227 тыс.
SC001 - Laravel 8 Multi Auth based on Roles
41:03
Просмотров 48 тыс.
04 - Authenticating Users in #laravel
13:15
Просмотров 46 тыс.
Laravel Jetstream: Add CRUD with User Roles
16:51
Просмотров 153 тыс.
Эконом такси в твоем городе 😂
00:59