José Everton
José Everton
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
Thanks, I'll try that!
31 replies
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
I'm sorry
31 replies
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
I replace request() with what? Did not quite understand
31 replies
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
No description
31 replies
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
@mohdaftab I tried using getTableQuery(), it didn't work, when you click on the pagination the url changes.
31 replies
FFilament
Created by mohdaftab on 1/2/2024 in #❓┊help
how to access public variable in getEloquentQuery
@mohdaftab Hi, I have the same problem, you solved this just by adding getEloquentQuery to the List?
31 replies
FFilament
Created by José Everton on 7/4/2024 in #❓┊help
Toggle with modal confirm
Thanks, It's fails for me! But I managed to find another solution, showing the confirmation modal when saving.
protected function getSaveFormAction(): Action
{
$action = Action::make(__('Save'));
if ($this->record->is_active && $this->data['is_active'] != 1) {
$action->requiresConfirmation()
->modalDescription(__('Are you sure you want to save??'));

}
$action->action(function () {
$this->save();

return redirect()->route('filament.admin.resources.users.index');
});

return $action;
}
protected function getSaveFormAction(): Action
{
$action = Action::make(__('Save'));
if ($this->record->is_active && $this->data['is_active'] != 1) {
$action->requiresConfirmation()
->modalDescription(__('Are you sure you want to save??'));

}
$action->action(function () {
$this->save();

return redirect()->route('filament.admin.resources.users.index');
});

return $action;
}
6 replies