5 months ago

laravel middleware only()

Posted 5 months ago by t0berius

Is there a way I can use only in the middleware, when constructing the middleware as array?


public function __construct(){

        'middleware3' => [
            'only' => [

To assign middleware3 only to the specified methods.

Please sign in or create an account to participate in this conversation.