In PHP Artisan when I put command:
php artisan make:middleware MiddlewareName
[37;41m [BadMethodCallException] [39;49m
[37;41m Method filter does not exist. [39;49m
Sounds like you're using a filter somewhere in your
routes.php file. Remove it and then call the command again.
I believe filters were depreciated in
5.1 then removed in