Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

[API-1290] Laravel 12.x Support#781

Merged
Mohammad-Alavi merged 15 commits into13.xfrom
API-1290-Laravel-12.x-Support
May 11, 2025
Merged

[API-1290] Laravel 12.x Support#781
Mohammad-Alavi merged 15 commits into13.xfrom
API-1290-Laravel-12.x-Support

Conversation

@Mohammad-Alavi
Copy link
Member

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (refactoring a current feature, method, etc...)
  • Code Coverage (adding/removing/updating/refactoring tests)
  • New feature (non-breaking change which adds functionality)
  • Remove feature (non-breaking change which removes functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@Mohammad-Alavi Mohammad-Alavi self-assigned this May 11, 2025
@Mohammad-Alavi Mohammad-Alavi added the dependencies Pull requests that update a dependency file label May 11, 2025
@Mohammad-Alavi Mohammad-Alavi requested a review from Copilot May 11, 2025 09:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors the authentication components to support Laravel 12.x while introducing adjustments to Passport configurations, routes, and database migrations. Key changes include renaming secret fields to plainSecret, updating data types and assertions in WebClient, and modifying Passport route registrations and related tests.

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/Containers/AppSection/Authentication/Values/Clients/WebClient.php Adjusts parameter types and renames secret to plainSecret for consistency with Passport updates.
app/Containers/AppSection/Authentication/Values/Clients/Client.php Updates the interface method to use plainSecret.
app/Containers/AppSection/Authentication/UI/API/Routes/Passport.v1.private.php Updates and adds several route registrations to support new Passport controllers and JSON API routes.
Various test files Updates tests to reflect changes in method names, route registrations, and token revocation behavior.
Migration files Revises schema definitions (e.g. switching from int to uuid/bpchar) to support Laravel 12.x standards.
Data/Factories files Makes corresponding updates in token and client factories to reflect the refactoring changes.
Config/passport.php Removes configuration sections no longer needed in the new Passport setup.

@codecov
Copy link

codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.06%. Comparing base (ab30f78) to head (2d6b054).
Report is 16 commits behind head on 13.x.

Additional details and impacted files
@@             Coverage Diff              @@
##               13.x     #781      +/-   ##
============================================
+ Coverage     78.16%   84.06%   +5.89%     
- Complexity      354      360       +6     
============================================
  Files           180      181       +1     
  Lines          1177     1192      +15     
============================================
+ Hits            920     1002      +82     
+ Misses          257      190      -67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Mohammad-Alavi Mohammad-Alavi changed the title Api 1290 laravel 12.x support [API-1290] laravel 12.x support May 11, 2025
@Mohammad-Alavi Mohammad-Alavi merged commit d0914e2 into 13.x May 11, 2025
7 checks passed
@Mohammad-Alavi Mohammad-Alavi deleted the API-1290-Laravel-12.x-Support branch May 11, 2025 10:49
@Mohammad-Alavi Mohammad-Alavi changed the title [API-1290] laravel 12.x support [API-1290] Laravel 12.x Support May 11, 2025
dan-wolf-at pushed a commit to dan-wolf-at/apiato that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant