Horizons
Horizons
FFilament
Created by Horizons on 12/13/2023 in #❓┊help
Best practice to inject additional attributes into my Laravel model to persist in state
When an action is fired on an infolist, does the model get refreshed from the database?
2 replies
FFilament
Created by LiruLiruLiru on 11/30/2023 in #❓┊help
Seeking Guidance on how to Inject Form State into Custom Layout
Hello. Were you able to make this work?
4 replies
FFilament
Created by Horizons on 11/9/2023 in #❓┊help
Panel Issues
Thank you @Dennis Koch. That solved both problems.
5 replies
FFilament
Created by Horizons on 10/24/2023 in #❓┊help
How to modify a model before form fill?
In the View page of the resource you can call the function above from the mount method.
class ViewModel extends ViewRecord
{
protected static string $resource = ModelResource::class;

public Model|int|string|null $record = null;

public function mount(int|string $record): void
{
$this->record = Model::find($record);
$this->record->fillApplicationPersonalInfo();
$this->fillForm();
}
}
class ViewModel extends ViewRecord
{
protected static string $resource = ModelResource::class;

public Model|int|string|null $record = null;

public function mount(int|string $record): void
{
$this->record = Model::find($record);
$this->record->fillApplicationPersonalInfo();
$this->fillForm();
}
}
3 replies