Repository navigation
Laravel Truss v1.10: PHP 8.2, Laravel Boost, and a calibrated doctor #64
albertoarena
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
If you run
truss:doctorin CI, read this part first.TRUSS-INT-007was recalibrated and the default preset's output changes, so a job running--fail-on=errormay report differently on a schema nobody touched. That is why this is a minor release and not a patch.The rule called every table with two foreign keys a pivot. Across the twelve real Laravel applications that could run both versions it fired 69 times, and 56 of those were wrong: 47% of everything the default preset reported. One recommended a constraint that would have limited a user to a single budget. It now fires 14 times on the same schemas.
Two consequences worth knowing:
doctor.ignoremay no longer match anything. A stale ignore is harmless, but worth pruning so it does not quietly cover the next real finding.Some true positives are given up on purpose: a genuine pivot carrying two payload columns escapes. A missed finding costs you nothing, a wrong one costs you a destructive migration.
The minimum PHP is now 8.2
Down from 8.3, which is what Laravel 12 itself requires. Truss was excluding projects that pin
config.platform.phpto8.2.0, which is careful practice rather than a mistake.Truss no longer resolves
Gateat bootAn application that binds no
Gate, as October CMS does, could not run any artisan command with Truss installed, includingtruss:doctor. The gate is now defined when a request needs it.Laravel Boost
Truss ships Boost guidelines and a skill inside the package. Run
php artisan boost:installand tick Truss in the third-party list. Nothing third-party is selected by default, and this adds nothing to your dependencies.Thanks
Two people found bugs in this one, both from outside the project: @belabiedredouane on #58 and @diboma on #59. Both are on the in-the-wild page now.
Full notes: https://github.com/albertoarena/laravel-truss/releases/tag/v1.10.0
Structure only, never data.
All reactions