Four runtime-failure checks on by default, typed Livewire views, and factory relation helpers.
Rules enabled by default
MissingView,UnconfiguredFilesystemDisk,SerializedQueuedModelandUnknownModelAttributenow run by default: errors aterrorLevel1 to 4,infoabove (#2214)- A
psalm.xmlfrompsalm-laravel initv3.11.0+ has<findMissingViews value="false" />. Delete it to enableMissingView.
- A
Features
- Type Livewire component views from their class (
$this, public properties) (#2206) - Type
has{Relation}()/for{Relation}()on Eloquent factories (#2219)
$user = User::factory()->hasLinks(2)->create();
-// UndefinedMagicMethod: Magic method Database\Factories\UserFactory::haslinks does not exist
+// $user is User- Type
require 'bootstrap/app.php'inartisanandpublic/index.phpas the bootedApplication(#2218)
Fixes
- Fix
UndefinedModelRelationreporting relations defined on a model subclass (#2220) - Fix
UnusedViewDatafalse positives when a custom@includedirective passes the whole scope (#2213)
Full Changelog: v4.18.3...v4.19.0