EnsureFeaturesAreActive
class EnsureFeaturesAreActive
Properties
| static protected Closure|null | $respondUsing | The callback that generates responses for failed feature checks. |
Methods
mixed
static string
using(BackedEnum|UnitEnum|string ...$features)
Specify the features for the middleware.
static void
whenInactive(Closure|null $callback)
Specify a callback that should be used to generate responses for failed feature checks.
static void
flushState()
Flush all static state.
Details
at line 26
mixed
handle(Request $request, Closure $next, BackedEnum|UnitEnum|string ...$features)
Handle the incoming request.
at line 48
static string
using(BackedEnum|UnitEnum|string ...$features)
Specify the features for the middleware.
at line 59
static void
whenInactive(Closure|null $callback)
Specify a callback that should be used to generate responses for failed feature checks.
The callback persists in a static property for the worker lifetime and affects every subsequent request.
at line 68
static void
flushState()
Flush all static state.