made with Laravel

Has Parameters

Trait to Pass Arguments to Laravel Middleware

Visit Site

Description

Trait to Pass Arguments to Laravel Middleware

"Has Parameters offers a trait for Laravel middleware that allows you to pass arguments in a more PHP'ish way, including as a key => value pair for named parameters, and as a list for variadic parameters.

It improves static analysis / IDE support, allows you to specify arguments by referencing the parameter name, enables skipping optional parameters (which fallback to their default value), and adds some validation so you don't forget any required parameters by accident."


Creator

Tim MacDonald
@timacdonald87
@timacdonald.bsky.social


Social Media Links

Two Factor Two-Factor Authentication
icon-eye-dark Created with Sketch. 2.348
Laravel Localized Routes Set up localized URLs
icon-eye-dark Created with Sketch. 1.313
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
Duster Automatic Configuration of Tighten's Default Code Style
icon-eye-dark Created with Sketch. 911
Prism Unified Interface for Working with LLMs in Laravel
icon-eye-dark Created with Sketch. 601
Laravel Excel Supercharged Excel Exports and Imports
icon-eye-dark Created with Sketch. 2.168