Livewire 5 Cannot use "::class" on int
Upgrading to Livewire 4 was mostly smooth, except for a cryptic TypeError caused by residual Volt components. Here is how I traced the "Cannot use ::class on int" error and updated my single-file components to the new native syntax.