Laravel 8 tutorial in Hindi - What is middleware

  Рет қаралды 44,045

Code Step By Step

Code Step By Step

Күн бұрын

in this laravel 8 hindi video tutorial, how to apply validation on HTML form and show error message Laravel 8ther version. This video is made by anil Sidhu in the Hindi language
steps of video
What is Middleware
Middleware Type
Make Middleware
Apply Middleware
Interview Question
Laravel 9 tutorial in Hindi

Пікірлер: 27
@TWNOGaming
@TWNOGaming 5 ай бұрын
middleware kyu use kare sir ya restriction wale kam tho ham controller par bhi kar sakta hai na?
@mirijazurrahaman3371
@mirijazurrahaman3371 4 жыл бұрын
I think you forgot to include this video into your laravel playlist Thanx for sharing your knowledge 🙂
@hemantsoni211
@hemantsoni211 3 жыл бұрын
sir whenever I visit your channel I search laravel 8 tutorial in hindi playlist on your channel playlist but every time not found this So, I have to search it on youtube's search bar, Please sir add this list to channel playlist so more and more student visit directly through you channel and access the series.
@akSingh_120
@akSingh_120 Жыл бұрын
Its great Sir.
@InspireHour
@InspireHour 2 жыл бұрын
A CSRF token is a secure random token (e.g., synchronizer token or challenge token) that is used to prevent CSRF attacks. The token needs to be unique per user session and should be of large random value to make it difficult to guess. A CSRF secure application assigns a unique CSRF token for every user session.
@k.ashutoshbaitharu3964
@k.ashutoshbaitharu3964 Жыл бұрын
How is your code not going into infinite loop? As we added the checkAge middleware globally it should also check age for /noaccess route since there is no age passed to /noaccess router redirect in the middle it goes into a infinite loop in my code. What's the solution to it and how your code works perfectly? Thank you.
@k.ashutoshbaitharu3964
@k.ashutoshbaitharu3964 Жыл бұрын
Ok, I missed out on checking if the $request object has the age property or not on this line $request->age && $request->age < 18 I was only checking if age is lesser than 18.
@karanmakwana2873
@karanmakwana2873 Жыл бұрын
Yes, we use middleware in controller Step 1: in controller you create constructor like and apply middleware :- public function __construct() { // Assign to ALL methods in this Controller $this->middleware('auth'); // Assign only to ONE method in this Controller $this->middleware('auth')->only('create'); // Assign only to specific methods in this Controller $this->middleware('auth')->only(['create', 'store']); // Assign to all EXCEPT specific methods in this Controller $this->middleware('auth')->except('index'); }
@darshankini2799
@darshankini2799 9 ай бұрын
its not working
@nilanjanchakraborty2694
@nilanjanchakraborty2694 4 жыл бұрын
Route pe middleware ko use korke hum controller ke upor apply kor sakte hai.
@mnuman3692
@mnuman3692 Жыл бұрын
Sir kindly make a video on reset password
@raodyc
@raodyc 3 жыл бұрын
You forgot to add this video to playlist of laravel
@kaziovesh9798
@kaziovesh9798 4 жыл бұрын
sir iska javab aphi batade... ya to iske uper bhi ek video banadijiye how to use middleware in controller
@vijaysharma-fm2ol
@vijaysharma-fm2ol Жыл бұрын
Very good
@sharadsharma3245
@sharadsharma3245 3 жыл бұрын
Sir react me middleware ki video he kya muje mil nhi rhi
@dev6716
@dev6716 2 жыл бұрын
if age is =18 or > 18 then how to redirect it to desired page for example i want to move user on form page ?
@nostalgic_vibes_7
@nostalgic_vibes_7 2 жыл бұрын
you can just write else part and put the file name in redirect
@vhoraaamir519
@vhoraaamir519 2 жыл бұрын
When check age Zero and blank. Welcome page show any solution???
@yogeshwarbarai9686
@yogeshwarbarai9686 Жыл бұрын
you will have to handle the data using redirect or view method when age is 0 . since in video he specified only one condition of < 18
@sagarbehera6316
@sagarbehera6316 Жыл бұрын
the question you have ask please give the answer
@k.ashutoshbaitharu3964
@k.ashutoshbaitharu3964 Жыл бұрын
China after watching this: mujhe kyu toda 🤣
@VishalYadav-gu3kz
@VishalYadav-gu3kz 3 жыл бұрын
agar hum sirf $request->age$request->age && $request->age
@onkarsoni
@onkarsoni 2 жыл бұрын
because you are not declaring request variable first
@mihirpatel6758
@mihirpatel6758 Жыл бұрын
I think vo infinity loop me chala ja raha hai, Vo noaccess page par bhi condition check kar raha hai.
@mihirpatel6758
@mihirpatel6758 Жыл бұрын
I think you made mistake here if($request->age && $request->age < 18 ){ return redirect('noacccess'); } return $next($request);
@raodyc
@raodyc 3 жыл бұрын
If it's not working for you, you need to write this way ?age=10
Laravel 8 tutorial in Hindi - Group middleware
7:40
Code Step By Step
Рет қаралды 45 М.
What is Middleware ? How to use Middleware in Laravel with Example
13:47
Web Tech Knowledge
Рет қаралды 13 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,7 МЛН
Laravel 8 tutorial in Hindi - Http Request Methods | Post | Put | Patch
15:46
Laravel 8 tutorial in Hindi - Flash Session | Example
11:50
Code Step By Step
Рет қаралды 24 М.
Laravel Model Factory Tutorial in Hindi / Urdu
29:18
Yahoo Baba
Рет қаралды 28 М.
Laravel 8 tutorial in Hindi - Session | with login example
12:47
Code Step By Step
Рет қаралды 45 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 57 М.
Laravel 11 tutorial in Hindi #23 What is Middleware in laravel
11:46
Code Step By Step
Рет қаралды 5 М.