Skip to content

Update to Laravel 12 and PHP 8.2, fix namespace to App\Models\ApiToken - #2

Open
madurapa wants to merge 11 commits into
UoGSoE:masterfrom
madurapa:master
Open

Update to Laravel 12 and PHP 8.2, fix namespace to App\Models\ApiToken#2
madurapa wants to merge 11 commits into
UoGSoE:masterfrom
madurapa:master

Conversation

@madurapa

Copy link
Copy Markdown

Changes

  • Updated package to support Laravel 12.15.0 and PHP 8.2+.
  • Changed App\ApiToken to App\Models\ApiToken to match Laravel 12 conventions.
  • Modernized migration and Artisan commands.
  • Added tests for Laravel 12 compatibility.

Motivation

This update fixes compatibility issues with Laravel 12, addressing errors like Failed to open stream: No such file or directory for app/ApiToken.php.

Related Issues

  • Resolves namespace errors in BasicApiTokenMiddleware.
  • Ensures compatibility with modern Laravel projects.

Testing

  • Ran php artisan test with PHPUnit 10.5.
  • Verified API endpoint (/api/hello) with updated token.

Please review and let me know if additional changes are needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant