FilamentF
Filament15mo ago
Xavi

How to send parameter to CreateAction?

I have a dinamic page to list Questions Models based by url query string altering query on table like this:

return $table
        ->query(function () {
            return Question::query()->where('module_id', request()->route('record'));
        })
        ->columns([
            Tables\Columns\TextColumn::make('subject')
                ->searchable()
                ->sortable(),
        ]);


on List resource i have a CreateAction button. How can i send to this modal current request value?
Was this page helpful?