Vp
section footer action to submit the section schema
How can I make section footer Action to submit the section schema form?
docs links: https://filamentphp.com/docs/3.x/forms/layout/section#adding-actions-to-the-sections-footer
I create a page
filament-page
and added custom multiple form (https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#using-multiple-forms)
I want to submit the section form by using the section footer action, how can I achieve this?
Code:
8 replies
How to eager load relationship inside infolist repeatable entry
I've enable prevent lazy loading like this in providers
Model::preventLazyLoading(! $this->app->isProduction());
I create a relationship manager and I display the data in infolist. but when it comes to repeatable entry like below example, I always got this error Attempted to lazy load [customer] on model [App\Models\Reply] but lazy loading is disabled.
I can put protected $with = ['customer'];
inside Model, but it's not a great solution IMO, so what should be the best way to eager load the relationship26 replies
select 'default' not working in filter action/forms
I am trying to filter dashboard widget using filter action/forms, I provide months options and try to set default to current month. Below is how I did
When page refresh, the select options always pointing to first item only instead of
default
13 replies
Auto scroll to selected navigation not implement in spa() mode?
Today I am just checking out
spa()
mode and everything seems working so far in resources, pages etc., but notice small issue, I am not sure whether this is intentional or not.
As we can see from video, If I am not using spa
then the active sidebar is showing in the center (auto scroll to selected navigation) but If I enable spa then it's showing from top (from Dashboard).
Before (last month) I used this code to auto scroll to selected navigation, but I am not sure in which version this is included in core so I removed from my providers and it's working fine still, but not in spa()
My questions is "Is this intentional or bug?"2 replies
Manually fill simple repeater data value on edit
I'm storing repeater value to another table, each value will be based on
languages
. On create it's working fine (storing).. but on edit the repeater value cannot display.. what can I do to fill simple repeater value on edit
On edit, total rows are correctly populated without value.. and this approach correctly filled text input Plan name
6 replies
How to give custom permission to sub-navigation relation manager
I create resource sub-navigation using https://filamentphp.com/docs/3.x/panels/resources/getting-started#resource-sub-navigation and also follow the demo https://demo.filamentphp.com/blog/posts/1 but I want to show/hide navigation button based on permission, I'm using Shield.
If I just put inside table action then I can do like this and it's working
How can I apply (show/hide) result relation manager based on custom permission?
4 replies
Access form data inside beforeFormValidated()
I have country code field, I want to save
+012
(notice plus sign) in database. but on input, I don't want user to insert "+" so I use mutateFormDataUsing()
to append before save, but however this doesn't work with ->unique()
validation, it always try to save to DB.
My codes:
EDIT
I notice that mutateFormDataUsing()
run after validation, so how can I access form data inside ->beforeFormValidated()
?3 replies
Question about Action
I notice that when we close a modal, there is two update server call.. I am not sure if this a bug or not, so asking about explanation or "in general" why?
This make a little slow and sometimes it cannot open the next action when we click fast
3 replies
halt table toggle column
How can I halt (not updating DB) toggle column?
In my case, if recommend count is gte = 15, I want to hold that event and shows notification and hold update process, but it still updating, how can I make it "not to update table"
Thanks in advance
7 replies
Passing parameters to extracted filter (for DRY)
I have date (from - to) filter and I used all of my application, but I want to extract and follow DRY
If I try like below then I got this error
unresolveable
(Flare link https://flareapp.io/share/xPQZOxk7)
How can I pass dynamic data in my custom filter? If I use created_at
instead of variable then it's working fine5 replies
hint action random data in form input
I am trying to create a reset password, the new password will auto generated on modal pop-up, when they click "refresh" it will change the password string (random).
What I did:
Auto generated password is done but I am stuck on refresh (hint action)
My code:
How can I change the password value after clicking refresh (hintAction)
4 replies
Toggle column with confirmation
Can we show confirmation modal when table toggle is changed?
I want the confirmation to pop-up when I try to toggle column and based on that it should reflect the status
What I tried:
I thought this link https://filamentphp.com/docs/3.x/tables/columns/toggle#lifecycle-hooks should do the trick, but I am stucking here
My code:
It always shows
dd()
value instead of action, thanks in advance5 replies
500 error on localhost when visit admin panel
My admin panels is working fine before, but now when I visit admin panel it shows "Page is not working, host is currently unable to handle this request. HTTP ERROR 500" and maximum execution time error display on terminal also.. All others pages/url are working fine except admin panel. What should be the case?
I tried:
1. composer update
2. clear all cache
optimize:clear
3. filament upgrade
4. remove vendor, composer lock and composer i
but nothing works
When I install new laravel + new filament then this issue is not happening... What should be my case to fix? thanks in advance4 replies