Select the version you are using from the top right corner, and follow the Laravel documentation accordingly:
https://laravel.com/docs/11.x/middleware
You will find the right guidance in that document.