Skip to content

Update to laravel/framework:^11.51#1083

Merged
outdooracorn merged 6 commits into
mainfrom
laravel-11-update
May 12, 2026
Merged

Update to laravel/framework:^11.51#1083
outdooracorn merged 6 commits into
mainfrom
laravel-11-update

Conversation

@outdooracorn
Copy link
Copy Markdown
Member

@outdooracorn outdooracorn commented Apr 14, 2026

docker run --rm -it -v $PWD:/app -u $(id -u):$(id -g) composer:2.9.2 --ignore-platform-req=ext-pcntl require --with-all-dependencies laravel/framework:^11.51

Bug: T360023

@outdooracorn outdooracorn changed the title Laravel 11 update Update to laravel/framework:^11.51 May 11, 2026
@outdooracorn outdooracorn force-pushed the laravel-11-update branch 3 times, most recently from da2a7d6 to 36c2e99 Compare May 12, 2026 11:17
outdooracorn and others added 6 commits May 12, 2026 15:35
```
docker run --rm -it -v $PWD:/app -u $(id -u):$(id -g) composer:2.9.2 --ignore-platform-req=ext-pcntl require --with-all-dependencies laravel/framework:^11.51
```

Bug: T426075
Add mariadb-client to our api docker image
This is needed by Laravel to run schema:dump command
Also add custom mariadb-client config to enable no TLS functionality

Bug: T426075
Required becuase Laravel 11 handles modifying columns differently [1]

Created by running all the existing migrations followed by `php artisan schema:dump --prune`

[1]: https://laravel.com/docs/11.x/upgrade#modifying-columns

Bug: T426075
These files are installed automatically when installing with `php artisan passport:install` if they don't already exist. The autogenerated files don't conform to our code style and so fails linting. Keeping correctly styled migrations files in `database/migrations/` resolves this issue.

Bug: T426075
As per the update guide [1], this should be comparable to the `mysql` driver. Keep the options the same as the in the database docs [2].

The connection name remains `mysql` because we found this is used in an unknown number of places. We saw most of the tests fail when renaming this to `mariadb` but we don't want to investigate this now. We also thought that we should name this something like technology agnostic and with clear purpose such as `platform_api_db`.

[1]: https://laravel.com/docs/11.x/upgrade#dedicated-mariadb-driver
[2]: https://laravel.com/docs/11.x/database#read-and-write-connections

Bug: T426075
As per the update guide [1], Doctrine DBAL related classes and methods have been removed.

Remove `doctrine/dbal` as we currently don't use it in the Platform API.

```
docker run --rm -it -v $PWD:/app -u $(id -u):$(id -g) composer:2.9.2 --ignore-platform-req=ext-pcntl remove doctrine/dbal
```

[1]: https://laravel.com/docs/11.x/upgrade#doctrine-dbal-removal

Bug: T426075
@outdooracorn outdooracorn marked this pull request as ready for review May 12, 2026 14:40
@outdooracorn outdooracorn merged commit ce9c20d into main May 12, 2026
5 checks passed
@outdooracorn outdooracorn deleted the laravel-11-update branch May 12, 2026 14:45
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.

4 participants