Filament - Laravel Model compatibility issue and error

Error when I try to implement protected function handleRecordUpdate(Model $record, array $data): Model for my EditEntity class which extends EditRecord: App\Models\MyModel must be compatible with Filament\Resources\Pages\EditRecord::handleRecordUpdate(Illuminate\Database\Eloquent\Model $record, array $data): Illuminate\Database\Eloquent\Model. But MyModel is already extending BaseModel which in turn extends the Illuminate\Database\Eloquent\Model, so how do I fix this ?
1 Reply
Vickydev
VickydevOP9mo ago
@Leandro Ferreira Any ideas that you can help out with here ? Could it be that Vite isn't properly configured such that the Edit form is looking good, but just not able to save data when submitted and silently fails(with no logs and errors thrown) ? I am saying this cause, per Filament I needn't use any method like handleRecordUpdate for saving data, as filament does this on it's own, but that is not working and silently failing as stated above.
Want results from more Discord servers?
Add your server