Hey,
I have a vehicle model and resource in my laravel/nova application with a boolean called in_service.
In my migration it's defined like this:
$table->boolean('in_service');
In my model I added it as a property and to the fillable array like this:
public bool $in_service;
protected $fillable = [
'in_service'
]
and using it in the resource like this:
Boolean::make(__('InService'), 'in_service'),
now my problem is that nova won't update the value of the bool as soon as I define it as a property on the model.
It works with all other defined properties, but not with the bool one.
Does anyone know why?
I already tried casting or removing the typing, still, as long as it's defined it won't work.