Skip to content

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

Open
outdooracorn wants to merge 2 commits intomainfrom
update/laravel/passport/12.4.3
Open

Update laravel/passport from v11.10.6 to v12.4.3#1112
outdooracorn wants to merge 2 commits intomainfrom
update/laravel/passport/12.4.3

Conversation

@outdooracorn
Copy link
Copy Markdown
Member

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.

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

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

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
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.

2 participants