$objOperadora = new Operadora();
$objOperadora->fill($operadora);
$objOperadora->save();
The error
Too few arguments to function Spatie\Enum\Enum::__construct(), 0 passed in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php on line 1341 and exactly 1 expected
Hey,
it seems like you are using the wrong base enum class.
class StatusEnum extends \Spatie\Enum\Enum you have to extend the laravel specific enum use Spatie\Enum\Laravel\Enum;.
I don't know what I'm doing wrong.
The model
The enum class
The usage
Already tried
The error