neerajk
neerajk
FFilament
Created by neerajk on 9/3/2024 in #❓┊help
Textarea not showing content and having JS errors
I have Textarea component in a form, when the page loads, the content of Textarea shows a split second and then Textarea is empty. If I type in anything its there and saving it works and I can see the data in db but when I load the form again the Textarea is empty. This is not happening on my local machine but only on server. Attached is the screenshot of the error I am seeing in browser console on form load. Forms\Components\Textarea::make('my_template'), Laravel v11 + Filament v3
7 replies
FFilament
Created by neerajk on 5/9/2024 in #❓┊help
Can I add multiple menu items for same resource e.g. My Contacts & All Contacts?
When selecting any menu item, it will open ContactResource and a filter will be added based on the label.
6 replies
FFilament
Created by neerajk on 3/23/2024 in #❓┊help
Getting event after record creation (afterCreate not working here)
I have 2 tables contacts and contacts_profile. I have a form to create a contact (and also fill in contact profile fields as well in that same form). I want to perform something after contact creation. I added afterCreate in ContactCreate.php but problem is that afterCreate gets called before record get saved in contacts_profile. Is there any event/hook/anything which I can use to perform something after a resource's all data (including relationship tables) get saved?
4 replies
FFilament
Created by neerajk on 2/22/2024 in #❓┊help
Can we modify SpatieTags to prevent dynamically adding new tags?
This is about SpatieTags plugin (https://filamentphp.com/plugins/filament-spatie-tags) I have created a separate resource to add/edit/delete tags and will give rights to add/edit/delete tags to certain users only. All other users can just use the tag but not add new one dynamically.
Forms\Components\SpatieTagsInput::make('tags')
Forms\Components\SpatieTagsInput::make('tags')
6 replies
FFilament
Created by neerajk on 2/20/2024 in #❓┊help
Repeater: How can I conditionally show/hide Delete button in Repeater?
I have multiple notes attached with per contact, so I am using Repeater. I want to make sure that if note is more than 2 days old then it cannot be deleted, otherwise delete it allowed. Thanks
8 replies