Duplicate Middleware Applied to Route #35186
-
Description:When i try to apply the same middleware into group and for the seperate route inside that group middleware is getting Duplicated Steps To Reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@ManojKiranA However, this is the test result: php artisan route:list
+--------+----------+----------+------+---------+------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+----------+------+---------+------------+
| | GET|HEAD | / | | Closure | web |
| | GET|HEAD | api/user | | Closure | api |
| | | | | | auth:api |
| | GET|HEAD | test | | Closure | web |
+--------+----------+----------+------+---------+------------+ Only single middleware applied here to Second test was the following line in echo (__file__ . '<br/>'); And this is the result from the above test: /var/www/test/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
Hello World The filename printed only once and not duplicated. |
Beta Was this translation helpful? Give feedback.
-
Yeah i can confirm that. I will open a issue in Laravel Debugbar |
Beta Was this translation helpful? Give feedback.
@ManojKiranA
I couldn't confirm after testing your example.
Maybe it is an issue with Laravel Debugger and not Laravel itself!
However, this is the test result:
Only sin…