Vickydev
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 ?3 replies
How to make RichEditor and ToggleInput fields ReadOnly ?
Hey y'all,
As stated in Question title, how can I make
RichEditor
and ToggleInput
fields ReadOnly inside Form/Schema, such that they still show the content fully with HTML rendered, but NOT ALLOW TO EDIT/MODIFY THE CONTENT IN ANY WAY ?
Thanks..6 replies