Looks like the Illuminate\Foundation\Support\Providers\FilterServiceProvider class has gone from the latest dev version. Does anyone know how to implement a FilterServiceProvider now?
You can use Middleware now. All you need to do now is to set middlewares (the same filters) in the controller, scan your route and then you can list it. Ex:
use App\Http\Requests\Auth\RegisterRequest;
/**
* @Middleware("guest", except={"logout"})
* @Middleware("csrf")
*/
class AuthController {
It's an example from App\Http\Controllers\Auth\AuthController; Route Annotations
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community