Create 2 different kinds of middleware groups

Posted 1 year ago by AbdallahSabri

I want to create 2 middleware groups, first one checks if all of the middlewares are valid, the second one checks if at least one of them is valid.

The middlewares are like these:

      'check_all_of_them' => [
        'middleware_1',
        'middleware_2',
        'middleware_3',
    ],

      'check_one_of_them' => [
        'middleware_1',
        'middleware_2',
        'middleware_3',
    ],

How can I do this?

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