Infolists / Action button

Hi I have been following a tutorial here: https://laracasts.com/series/rapid-laravel-development-with-filament/episodes/14 I have followed the example and with this function in my controller I get the slideover with the named field
public function slideAction(): Action
{
return Action::make('slide')
->slideOver()
->form(
form: [
TextInput::make(name: 'name'),
]
)
->action(action: function () {
// this is the submit action so not really relevant
});
}
public function slideAction(): Action
{
return Action::make('slide')
->slideOver()
->form(
form: [
TextInput::make(name: 'name'),
]
)
->action(action: function () {
// this is the submit action so not really relevant
});
}
I have within another controller (ArchObjectResource) an infolist defined like this:
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema(components: [
Section::make(heading: 'References')
->columns(2)
->schema([
TextEntry::make(name: 'object_key'),
TextEntry::make(name: 'hcat_reference'),
...
...
...
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema(components: [
Section::make(heading: 'References')
->columns(2)
->schema([
TextEntry::make(name: 'object_key'),
TextEntry::make(name: 'hcat_reference'),
...
...
...
How do I (can I) replace the form definition inline with the infolist? Thx! j
Laracasts
Using Filament Outside of Panels
Filament is not just for panels. We will implement forms and actions in a good old livewire...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?