skip to Main Content

Middleware Laravel 11?

I want to define middleware in my Laravel project, this is my web.php file, when I try to check the auth, I get an error Route [login] not defined. Please help me define middleware in Laravel 11 in the resource…

VIEW QUESTION

Laravel 11 Middleware route group api doesnt work

I have a api project with Laravel 11, and i want to make a middleware for admin api. AdminMiddleware.php (custom middleware) <?php namespace AppHttpMiddleware; use Closure; use IlluminateHttpRequest; use IlluminateSupportFacadesAuth; use SymfonyComponentHttpFoundationResponse; class AdminMiddleware { /** * Handle an incoming…

VIEW QUESTION
Back To Top
Search