n3xt0r/laravel-passport-authorization-core
Core components for building OAuth2 authorization flows with Laravel Passport. Provides reusable helpers and abstractions to standardize consent/approval handling and authorization logic, making it easier to implement custom Passport authorization endpoints and UI.
Resource/Action models) remains extensible.readonly properties in Resource classes).ScopeResolver overrides) may still require extensive testing.Resource::actions() remains a manual requirement.app()->context() in scope logic).spatie/laravel-permission (now Laravel 13-compatible) offer more features (e.g., gate middleware, role inheritance)?readonly properties or attribute changes).Resource/Action definitions.Str::camel() usage).Resource/Action models with Laravel 13 conventions (e.g., readonly properties if needed)./api/v2/posts).Passport::tokens()->update().authorize:scope).app()->context()->get('tenant') in Resource logic).bind()/singleton() calls in the package don’t conflict with Laravel 13’s container.app()->make() vs. resolve()).Action models with Laravel 13’s model casting (e.g., Castable traits).Resource/Action models with Laravel 13 syntax (e.g., readonly properties).Token model for Laravel 13 compatibility.config/passport-authorization.php).PassportAuthorizationServiceProvider (verify boot order in Laravel 13).AuthServiceProvider.Passport::actingAs() in Laravel 13’s testing helpers.passport.scopes and passport.tokens table performance.ScopeResolver may need updates for Laravel 13 changes (e.g., container binding syntax).Resource logic doesn’t rely on global state (e.g., app()->context() must be resolved per-request).afterResolving() in AppServiceProvider to debug.Resource::actions() returns correct Action models (Laravel 13’s macroable models may affect this).Token scopes with dd($token->scopes).passport and auth logging channels (Laravel 13’s log channels may have new defaults).How can I help you explore Laravel packages today?