Re:Union Types have been accepted for PHP 8
by kyriakos on Saturday November 09, 2019 @08:08PM
(#21495684)
For model properties and a few other IDE related issues with laravel you can use ide helper which generates annotations on your models by inspecting the schema in the database. The ide then uses the annotations and gives you property auto complete among other things.
https://github.com/barryvdh/laravel-ide-helper