Buffalo Eats Online API Documentation

ModuleMiddleware extends Middleware
in package

Middleware for gating routes by feature module.

Checks if the current business has a specific module enabled. Used with parameterized syntax: 'ModuleMiddleware:analytics'

Tags
author

J.J. Johnson visionquest716@gmail.com

copyright

2026 VisionQuestServices LLC

Table of Contents

Properties

$module  : string

Methods

__construct()  : mixed
Create middleware with the required module name.
handle()  : bool
Handle the request by checking module access.

Properties

Methods

__construct()

Create middleware with the required module name.

public __construct([string $module = '' ]) : mixed
Parameters
$module : string = ''

Module name (e.g., 'analytics', 'reservations')

handle()

Handle the request by checking module access.

public handle([array<string|int, mixed> $params = [] ]) : bool
Parameters
$params : array<string|int, mixed> = []

Route parameters

Return values
bool

        
On this page

Search results