n3xt0r/laravel-passport-modern-scopes
Attribute-based OAuth scope enforcement for Laravel Passport. Declare required scopes directly on controllers/actions via PHP 8 attributes, then enforce them with a single middleware. Keeps routes clean and auth rules close to the code they protect.
#[RequiresScope] and #[RequiresAnyScope] attributes to define mandatory Passport scopes declaratively.ResolvePassportScopeAttributes to enforce scope validation consistently.passport-modern-scopes.auto_boot).Initial stable release of the package in its current architecture.
How can I help you explore Laravel packages today?