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


Social Media Links

Eloquent Has Many Deep Laravel Eloquent HasManyThrough Relationships with Unlimited Levels
icon-eye-dark Created with Sketch. 1.257
Laravel URL Shortener URL Shortener Package
icon-eye-dark Created with Sketch. 1.005
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Laravel Widgetize Cleaner code & easy caching
icon-eye-dark Created with Sketch. 6.135
Laravel mPDF Generate PDFs with mPDF
icon-eye-dark Created with Sketch. 12.705