Тёмный

Laravel 8 tutorial - Route middleware 

Code Step By Step
Подписаться 323 тыс.
Просмотров 34 тыс.
50% 1

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

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@codestepbystep
@codestepbystep 2 года назад
please support me by subscribe, like and comment :) thank you
@negi3625
@negi3625 3 года назад
Sir you should put the answer of interview question on comment ,and pin it .It would be convenient that way
@worldclicks7965
@worldclicks7965 3 года назад
yes ,the syntax should be: route::view('url','filename')->middleware('1stroutename ','2ndroutename','another');
@gyamfijohn3066
@gyamfijohn3066 8 месяцев назад
you are real good . i have understand everything
@moradharrouch7531
@moradharrouch7531 4 года назад
many thanks from morocco bro , you do a great job thanks again
@younesslabghough4810
@younesslabghough4810 4 года назад
nadi had khona fi lah asadi9i yak hhh
@jayjawad8665
@jayjawad8665 4 года назад
@@younesslabghough4810 " nadi had khona fi lah asadi9i yak hhh" Translation to English " He is a skillful master at his craft, right my friend, hhh" .....This is just to keep everyone on the same page using English
@lazyant504
@lazyant504 4 года назад
Yes, we can use two middleware in a single Route. exm: Route::view( 'home', 'home' ) -> middleware( 'protectedPage ' , 'safePage ' ); if i am worng please provide the correct answer.
@fzumbado3k
@fzumbado3k 3 года назад
With array brackets ->middleware(['protected', 'safe']);
@manishkushwaha-je6xy
@manishkushwaha-je6xy 2 года назад
hey man!! U r just a awesome.............. I am very greatful of yours
@samuelprodev
@samuelprodev 4 года назад
Thanks a lot. This is a very helpful tutorial on middleware. My questions have been answered thanks to you. Keep it up!
@gyamfijohn3066
@gyamfijohn3066 8 месяцев назад
thank you so much
@technoking536
@technoking536 2 года назад
You can also add middleware inside __construct function in the controller by adding $this->middleware('middlewareName') if you want it to be applied on all functions in that controller or individually pick functions in the controller and add middleware there.
@acrappygamer8530
@acrappygamer8530 2 года назад
Thankyou...
@vladzaiko5012
@vladzaiko5012 3 года назад
Please take a look at PSR-2, class name should be in uppercase style
@014amine
@014amine 3 года назад
yes we can apply the same middleware to many route
@thedevdudeyt
@thedevdudeyt 3 года назад
thank your great information :)
@codewithus567
@codewithus567 3 года назад
Then what is the difference between Group MIddleware and Route Middleware?
@Do_and_Do_Not
@Do_and_Do_Not 2 года назад
tell me please ow to create database which you are connecting with the database and fetching data from @code step by step
@freerelax8964
@freerelax8964 4 года назад
Interview question : We can use two Middleware by using array brackets in single route.
@akshsharma777
@akshsharma777 4 года назад
can you please write syntax??
@md.ashraful3103
@md.ashraful3103 4 года назад
@@akshsharma777 Route::view('admin', 'dashborad')->middleware(['name1', 'name2']);
@perialdupont1181
@perialdupont1181 4 года назад
@@md.ashraful3103 great man
@akshsharma2015
@akshsharma2015 3 года назад
@@md.ashraful3103 thank you
@solidcat3917
@solidcat3917 4 года назад
middleware, Group middleware and Route middlewre do the same thing, which one is better?
@thesau1595
@thesau1595 3 года назад
it depends on where youll gonna implement the middleware. there are some scenarios where you only have to use 1 middleware per page and there are also scenarios where a middleware should be implemented globally. disregard the access level of user and its status weather is logged or not
@samimahassan1716
@samimahassan1716 4 года назад
thank u sirrrrr
@thearong_5853
@thearong_5853 3 года назад
i Can’t Use Multiple Middleware in same Route? how to fix it ?
@qualityassurance1126
@qualityassurance1126 3 года назад
Route::get('/home', function (){ return view('home')->middleware('protectedPage'); }); is it okay to use this?
@noumanhayat6796
@noumanhayat6796 2 года назад
no
@noonanorens2040
@noonanorens2040 3 года назад
thank u...........Activate translation please
@santhoshkumar-sf4bc
@santhoshkumar-sf4bc 4 года назад
how to access custom function in middleware using Route
@muhammadshazam6098
@muhammadshazam6098 3 года назад
i have gone through in an interview, how this handle function works? kindly answer if anyone knows about it.
@orkhanismayilov2065
@orkhanismayilov2065 2 года назад
Hi,i write home?age=19 or other x (x>18) and result is same.why not error?
@mihirpatel6758
@mihirpatel6758 2 года назад
if( $request->age < 18 ){ return redirect('noaccess'); }
@RamuRamu-eu2sx
@RamuRamu-eu2sx 4 года назад
Sir angular 10 pwa course
@codestepbystep
@codestepbystep 4 года назад
bhai thoda time do bnauga, pka
@mituts3703
@mituts3703 4 года назад
why does he asks questions that he doesn't learn ??
@yeahme_lucifer
@yeahme_lucifer 3 года назад
Oops...
Далее
Laravel 8 tutorial - Localization | locale
13:10
Просмотров 56 тыс.
Laravel 8 tutorial in Hindi - What is middleware
10:29
Laravel 8 tutorial in Hindi - Group middleware
7:40
Просмотров 45 тыс.
Laravel 8 tutorial - Http Client
11:32
Просмотров 53 тыс.
Laravel 8 tutorial - Http Request Methods
14:43
Просмотров 41 тыс.
04 - Authenticating Users in #laravel
13:15
Просмотров 48 тыс.