jals65
jals65
FFilament
Created by MacTavish on 11/20/2024 in #❓┊help
Open Modal after Action Execution to show the result
Thanks @Azorky, i'm going to review that
5 replies
FFilament
Created by MacTavish on 11/20/2024 in #❓┊help
Open Modal after Action Execution to show the result
I have the same problem. I'm doing an action with a form to create an api token.
Action::make('create_token')
->form([
TextInput::make('name')
->unique()
->required(),
DateTimePicker::make('expiration_date')
->required()
->minDate(now()->addHour()
])
->requiresConfirmation()
->action(function (array $data) {
$token = auth()->user()->createToken($data['name'], ['*'], new \DateTime($data['expiration_date']))->plainTextToken;
// Here then i want to open a new modal to show the $token value
})
Action::make('create_token')
->form([
TextInput::make('name')
->unique()
->required(),
DateTimePicker::make('expiration_date')
->required()
->minDate(now()->addHour()
])
->requiresConfirmation()
->action(function (array $data) {
$token = auth()->user()->createToken($data['name'], ['*'], new \DateTime($data['expiration_date']))->plainTextToken;
// Here then i want to open a new modal to show the $token value
})
I want to open a new modal after token it's created on ->action() to show the value of the token generated
5 replies
FFilament
Created by jals65 on 7/8/2024 in #❓┊help
Action don't works on custom ViewRecord page
Oo, thanks. That works.
5 replies
FFilament
Created by jals65 on 7/4/2024 in #❓┊help
Custom colum view
Thanks
7 replies
FFilament
Created by jals65 on 7/4/2024 in #❓┊help
Custom colum view
it works with $getState()
7 replies
FFilament
Created by jals65 on 6/25/2024 in #❓┊help
TextInput with follow action
Thanks for that @toeknee @Leandro Ferreira
10 replies
FFilament
Created by jals65 on 6/25/2024 in #❓┊help
TextInput with follow action
But any way to get it on the suffixAction?
10 replies
FFilament
Created by jals65 on 6/25/2024 in #❓┊help
TextInput with follow action
Where can I inject ?string $state ?
10 replies
FFilament
Created by jals65 on 5/2/2024 in #❓┊help
Adding id's to filament components
Ok, thanks.
6 replies
FFilament
Created by jals65 on 5/2/2024 in #❓┊help
Adding id's to filament components
hi?
6 replies
FFilament
Created by jals65 on 5/2/2024 in #❓┊help
Adding id's to filament components
I see that actions have extraAttributes function where I can add this attributes. But for example in some parts of the app like search, menu, tables or forms, I don't know how to do that.
6 replies
FFilament
Created by jals65 on 4/15/2024 in #❓┊help
Record variable type change to string if i add the mount function on my viewrecord page
Thanks, I was missing that: parent::mount($record);
6 replies
FFilament
Created by jals65 on 4/15/2024 in #❓┊help
Record variable type change to string if i add the mount function on my viewrecord page
hi?
6 replies
FFilament
Created by jals65 on 4/11/2024 in #❓┊help
Theme app.css cache busting
finaly i solve it adding on the webpack.mix.js this:
if (mix.inProduction()) {
mix.version();
}
if (mix.inProduction()) {
mix.version();
}
4 replies
FFilament
Created by jals65 on 4/5/2024 in #❓┊help
TextInput default value on edit page
ok, i'm going to try it
7 replies
FFilament
Created by jals65 on 4/5/2024 in #❓┊help
TextInput default value on edit page
The problem is that I saved the form as json in a field, it is not directly related to a mysql field that can use the mysql default
7 replies
FFilament
Created by jals65 on 3/1/2024 in #❓┊help
Issue updating filament from 3.0.92 to 3.2.4
5 replies
FFilament
Created by jals65 on 3/1/2024 in #❓┊help
Issue updating filament from 3.0.92 to 3.2.4
I have opened an issue on github because it seems that it is a bug. I have managed to reproduce it in a clean filament-issue project
5 replies
FFilament
Created by jals65 on 2/13/2024 in #❓┊help
Error adding a link in table with shouldOpenUrlInNewTab()
thanks @Raziul Islam
6 replies
FFilament
Created by jals65 on 2/13/2024 in #❓┊help
Error adding a link in table with shouldOpenUrlInNewTab()
If I remove shouldOpenUrlInNewTab() it works.
6 replies