Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Passport Modern Scopes Laravel Package

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.

View on GitHub
Deep Wiki
Context7
2.2.1

Fixed

  • Removed duplicated sodium extension.
2.2.0

Added

  • Added Support for Laravel 13
2.0.0

Added

  • Introduced PHP 8 Attributes for declaring required OAuth scopes on controllers and controller actions.
  • Added #[RequiresScope] and #[RequiresAnyScope] attributes to define mandatory Passport scopes declaratively.
  • Automatic resolution of class-level and method-level scope attributes at runtime.
  • Method-level scope attributes are additive to class-level requirements.
  • New middleware ResolvePassportScopeAttributes to enforce scope validation consistently.
  • Optional automatic middleware bootstrapping via configuration (passport-modern-scopes.auto_boot).

Initial stable release of the package in its current architecture.

2.1.0

Added

  • Added Suggestion to composer.json for "n3xt0r/laravel-passport-authorization-core" package to enhance developer experience and promote modular architecture.
  • Added Support for PHP 8.4/PHP8.5
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo