@@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
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.
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.
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