It seems to be here Illuminate\Auth\Middleware
Where is the Auth Middleware in Laravel 12?
I've been using Laravel since version 8, and it's been a great experience up to Laravel 11. Now that Laravel 12 is here, I decided to start my new project using it. However, I noticed some changes that took me by surprise.
First, the default starter kit with Vue now uses ShadCN, which is fine, though I personally didn’t want it. Additionally, it uses TypeScript instead of regular JavaScript. I haven't worked with TypeScript before, but I see it as a good opportunity to explore something new. That said, integrating it into my project has been a bit tricky, but I’m confident I'll get comfortable with it eventually.
Now, my main question: Where is the auth middleware in Laravel 12?
In previous versions, we had an Authenticate middleware inside the app/Http/Middleware/ directory. But in Laravel 12, my Middleware directory only contains HandleAppearance.php and HandleInertiaRequests.php.
I also tried running:
php artisan config:publish auth
However, all the auth-related files were already present. So, how can I find and modify the authentication middleware in Laravel 12?
If anyone has insights into how authentication is handled in Laravel 12 or where to locate the middleware, I'd appreciate the guidance!
Please or to participate in this conversation.