Asmit Nepali
Asmit Nepali
FFilament
Created by Asmit Nepali on 6/17/2024 in #❓┊help
How to change the create button label globally ?
No description
5 replies
FFilament
Created by Asmit Nepali on 6/14/2024 in #❓┊help
Table Delete Action global configuration not working
I tried to configure the delete action from the service provider boot method in but it won't work.
DeleteAction::configureUsing(function (DeleteAction $deleteAction) {
return $deleteAction->action(function ($record) {
try {
$record->delete();
Notification::make()
->success()
->title('Record deleted successfully!')
->send();
} catch (\Exception $e) {
Notification::make()
->danger()
->title($e->getMessage())
->duration(5000)
->send();
}
});
});
DeleteAction::configureUsing(function (DeleteAction $deleteAction) {
return $deleteAction->action(function ($record) {
try {
$record->delete();
Notification::make()
->success()
->title('Record deleted successfully!')
->send();
} catch (\Exception $e) {
Notification::make()
->danger()
->title($e->getMessage())
->duration(5000)
->send();
}
});
});
2 replies
FFilament
Created by Asmit Nepali on 6/14/2024 in #❓┊help
Repeat form components with morphToMany delete previous data and add new data.
I have a user table and users may have different roles. Role could be added from form or other table action. Role can be Repeat form components with roles relationship. While I'm add through the create action then it works fine. But I made a table action add roles from the user table and show form with a repeat field role then it deleted old data and saved new data.
4 replies
FFilament
Created by Asmit Nepali on 6/13/2024 in #❓┊help
Action failed notification.
I have to delete the record from the table using table delete actions, Sometimes there is an issue with delete operation and throw the exception, I want to show that exception message on failed notification. How can I do that in filament.
9 replies
FFilament
Created by Asmit Nepali on 6/7/2024 in #❓┊help
Filament file upload issue
Here, I have a attachment form. In that form I choose a file to upload and it take time to complete upload process in temp dir. During uploading process if I do other action like type any other input field then it reset the upload: Shown in video
5 replies
FFilament
Created by Asmit Nepali on 6/4/2024 in #❓┊help
Persist modal text field data after close the modal.
No description
11 replies
FFilament
Created by Asmit Nepali on 6/1/2024 in #❓┊help
How to show total count of related record on Manage Related Record tab badge ?
No description
15 replies
FFilament
Created by Asmit Nepali on 6/1/2024 in #❓┊help
How to change the icon of createOptionForm icon on select field ?
No description
5 replies
FFilament
Created by Asmit Nepali on 5/30/2024 in #❓┊help
TimePicker field not allow to set 24 hrs format.
TimePicker::make('picker')->displayFormat('H:i'),
TimePicker::make('picker')->displayFormat('H:i'),
I tried this but the it not allow to me set 13 for 1 PM, When I type 13 it turn into 1.
5 replies
FFilament
Created by Asmit Nepali on 5/27/2024 in #❓┊help
Is it possible to open modal on change the status of Select Field ?
In laravel filament form is it possible to open modal on change the state of select dropdown ?
9 replies
FFilament
Created by Asmit Nepali on 5/26/2024 in #❓┊help
How can I call form of one resource from another resource ?
Is it possible to share form of one resource to another resource?
2 replies
FFilament
Created by Asmit Nepali on 5/26/2024 in #❓┊help
With a create action can I create data form one resource table for another resource.
Example: I have a User model and Job Model, I want to create job record form User table action. But in the form there is a related Input field with Job.
3 replies
FFilament
Created by Asmit Nepali on 5/23/2024 in #❓┊help
Is it possible to make select input invisible but send the default value with the form submit ?
Is it possible to make select input invisible but send the default value with the form data on submit ?
7 replies
FFilament
Created by Asmit Nepali on 5/22/2024 in #❓┊help
How to add morphToMany field value from the form ?
I have a file submission feature and each submission have notes which is morphic and I have to add first note during the creation of the submission
8 replies
FFilament
Created by Asmit Nepali on 5/17/2024 in #❓┊help
How to make Select field disable to edit but it must send the data.
I have a use case, where there are two parent child dropdown, If I select the item on parent field then the child will auto fill. I want to disable to edit child field but send the data while submit the form.
10 replies
FFilament
Created by Asmit Nepali on 5/16/2024 in #❓┊help
How to get the deselect item on SelectColumn with multiple options.
Is it possible that get the deselect item on multiple select options. With afterStateUpdate method
16 replies