lucid
lucid copied to clipboard
Features not working with Laravel 9
Hi, when calling $this->serve(new AbcFeature());
this error occurs:
Illegal offset type in isset or empty
In file vendor / laravel / framework / src / Illuminate / Container / Container.php : 1285
I tried with trait Lucid\Bus\ServesFeatures
and with controller Lucid\Units\Controller
, both ways produce the error.
Feature alone works:
new AbcFeature(); // ok
(new AbcFeature())->handle(); // ok
PHP 8.1.3 Laravel 9.16.0
$this->serve(AbcFeature::class)