Skip to content

Update laravel/passport from v11.10.6 to v12.4.3#1112

Merged
outdooracorn merged 3 commits intomainfrom
update/laravel/passport/12.4.3
May 7, 2026
Merged

Update laravel/passport from v11.10.6 to v12.4.3#1112
outdooracorn merged 3 commits intomainfrom
update/laravel/passport/12.4.3

Conversation

@outdooracorn
Copy link
Copy Markdown
Member

@outdooracorn outdooracorn commented Apr 29, 2026

Update composer packages with this command:

docker run --rm -it -v $PWD:/app -u $(id -u):$(id -g) composer:2.9.2 \
  --ignore-platform-req=ext-pcntl \
  --with-all-dependencies \
  require \
    laravel/passport:^12.4 \
    firebase/php-jwt:^7.0 \
    absszero/laravel-stackdriver-error-reporting

Add Passport's migrations to the database/migrations dir with docker compose exec api php artisan vendor:publish --tag=passport-migrations 1.

Fix LoginTest::testLoginSuccess() by using Artisan::call() instead of $this->artisan() in the setUp() method.

Add --no-interaction to php artisan passport:install commands in the Makefile and README.

Bug: T424471
Co-authored-by: Dat dat.nguyen@wikimedia.de

outdooracorn and others added 2 commits May 7, 2026 11:36
Update composer packages with this command:
```
docker run --rm -it -v $PWD:/app -u $(id -u):$(id -g) composer:2.9.2 \
  --ignore-platform-req=ext-pcntl \
  --with-all-dependencies \
  require \
    laravel/passport:^12.4 \
    firebase/php-jwt:^7.0 \
    absszero/laravel-stackdriver-error-reporting
```

Run `docker compose exec api php artisan vendor:publish --tag=passport-migrations` to add Passport's migrations to the `database/migrations` dir.

Fix `LoginTest::testLoginSuccess()` by using `Artisan::call()` instead of `$this->artisan()` in the `setUp()` method.

Running `passport:install` in tests in this way is a code smell and likely something we want to remove. Not addressed in this PR to avoid scope creep. See these links for more information:
* #604
* https://stackoverflow.com/questions/50113508
* https://laravel.com/docs/12.x/passport#testing

Add `--no-interaction` to `php artisan passport:install` commands in the Makefile and README.

Bug: T424471
@rosalieper rosalieper force-pushed the update/laravel/passport/12.4.3 branch from 46292c9 to 06ea077 Compare May 7, 2026 09:36
@outdooracorn outdooracorn merged commit f8a9400 into main May 7, 2026
5 checks passed
@outdooracorn outdooracorn deleted the update/laravel/passport/12.4.3 branch May 7, 2026 09:52
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.

3 participants