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.
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime
canaltp/sam-ecore-application-manager-bundle
canaltp/sam-ecore-security-manager-bundle