marco76tv
marco76tv
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
thank you very much, in the meantime I use that workaround that takes the data from the url
17 replies
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
yes and I fell into that 1%
17 replies
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
maybe a small change to importAction to pass by ImportAction::make() ->importer(ContactImporter::class) TO ImportAction::make() ->importer(ContactImporter::make(['var1'=>'value1']))
17 replies
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
I think there is a better way to go and get "records" than $survey_id=Str::of(url()->previous()) ->between('/surveys/','/contacts') ->toString();
17 replies
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
I created the ManageContacts subpage and added the action ImportAction::make() ->importer(ContactImporter::class) ->options([ 'survey_id'=>$this->record->getKey(), ]) each survey has translations of the field labels, and I have to put getColumns inside $survey_id=Str::of(url()->previous()) ->between('/surveys/','/contacts') ->toString(); $survey=Survey::firstWhere(['id'=>$surveyid]);
$trans = $survey?->getTrans() ?? []; -------------------------------------------------------- $k='attribute
'.$i; $columns[]=ImportColumn::make($k) ->label($trans[$k] ?? $k) ->ignoreBlankState();
17 replies
FFilament
Created by marco76tv on 5/28/2024 in #❓┊help
how to pass a variable to importer and use it inside getColumns
->options(['foo'=>'pluto']) I also used it inside resolveRecord.. but I need it inside getColumns
17 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
ok thanks
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
Of course, I was just asking if you had thought about how you could fix that
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
find any solution for route:current ?
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
ok now is working with morph relation too
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
there is in both ..
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
there are many .. on the file https://github.com/laraxot/filament-nested-resources/blob/master/src/NestedResource.php Route::current() became null .. so i try to use Session .. but there has to be a better solution
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
thanks 🙂
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
actually thank you very much, I have already done the fork, I have some bugs about getting the route parameters from livewire
27 replies
FFilament
Created by marco76tv on 9/26/2023 in #❓┊help
nested resource
(up)
27 replies
FFilament
Created by malebestia. on 8/22/2023 in #❓┊help
non-automatic filters
22 replies
FFilament
Created by marco76tv on 8/13/2023 in #❓┊help
what do you suggest for automatize api ?
all filament routes to have response in json
6 replies