Weave Code
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky