morawcik
morawcik
FFilament
Created by morawcik on 10/4/2024 in #❓┊help
Get current item position in repeater or uuid in repeater mutateRelationshipDataBeforeCreateUsing
I guess I could try this version with static variable ($uuid is not available for mutateRelationshipDataBeforeCreateUsing)
4 replies
FFilament
Created by morawcik on 10/4/2024 in #❓┊help
Get current item position in repeater or uuid in repeater mutateRelationshipDataBeforeCreateUsing
So I guess it's not possible?
4 replies
FFilament
Created by morawcik on 9/6/2024 in #❓┊help
Repeater - toggle component instead of collapse arrow
Yeah, that I have already but I was curious if I can "polish" it a bit more 🙂
3 replies
FFilament
Created by morawcik on 8/11/2024 in #❓┊help
Relation manager many to many at resource create
Thanks again - it works like a charm. Each item has a few fields like name, is_enabled, price etc I added for each item a label (->itemLabel(fn (array $state): ?string => $state['name'] ?? null) but i'm curious if is possible to use a toggle for is_enabled in label (it would looks like "(toggle) name") and toggle it on/off would show/hide content (instead of default collapse function)
7 replies
FFilament
Created by morawcik on 8/11/2024 in #❓┊help
Relation manager many to many at resource create
Ok, thanks. I'll try it at home.
7 replies
FFilament
Created by morawcik on 8/11/2024 in #❓┊help
Relation manager many to many at resource create
And just use a ->default() for Repeater?
7 replies
FFilament
Created by morawcik on 8/11/2024 in #❓┊help
Relation manager many to many at resource create
So I guess it's not possible for now.
7 replies
FFilament
Created by morawcik on 7/2/2024 in #❓┊help
Validation messages not working on custom page?
Oh boy, I was sure it's when I want populate form with model data... I'm so dumb. Thank you so much.
9 replies
FFilament
Created by morawcik on 7/2/2024 in #❓┊help
Validation messages not working on custom page?
Yes, I'm using statePath('data') I'm doing this:
Checkbox::make('rules')
->label(fn() => new HtmlString('Please accept the <a href="/rules"><u>rules</u></a>'))
->accepted()
->validationMessages([
'accepted' => 'Custom error message',
])
->columnSpanFull()
Checkbox::make('rules')
->label(fn() => new HtmlString('Please accept the <a href="/rules"><u>rules</u></a>'))
->accepted()
->validationMessages([
'accepted' => 'Custom error message',
])
->columnSpanFull()
For this page all rules I'm using through filament - like accepted() required() or maxLength()
9 replies
FFilament
Created by morawcik on 7/2/2024 in #❓┊help
Validation messages not working on custom page?
There is - for e.g. by using ->accepted() (from vendor/filament/forms/src/Components/Concerns/CanBeAccepted.php) but it can be any validation message/rule and it not works as well.
9 replies
FFilament
Created by morawcik on 7/2/2024 in #❓┊help
Validation messages not working on custom page?
Anyone? 😦
9 replies
FFilament
Created by morawcik on 6/15/2024 in #❓┊help
Column avg() not working? I'm sure i'm missing something
Oh... thanks 🙂
4 replies
FFilament
Created by morawcik on 6/9/2024 in #❓┊help
2 levels of tenancy (nested tenancy)
I guess I'll just create first store default with creating company (or I would say create company during creating first tenant/store) and the company resources will available insinde each store (if user has permission for that)
4 replies
FFilament
Created by morawcik on 6/9/2024 in #❓┊help
2 levels of tenancy (nested tenancy)
But in my case each team (company) will have many stores and each store will have their own resources. So it will be user -> companies -> stores -> [products, orders, etc]
4 replies
FFilament
Created by morawcik on 5/30/2024 in #❓┊help
Pivot data in model/resource table
That works, thanks 🙂
4 replies
FFilament
Created by morawcik on 5/25/2024 in #❓┊help
JS files are commented
The only difference is apache (local) vs nginx (server) 🤔
11 replies
FFilament
Created by morawcik on 5/25/2024 in #❓┊help
JS files are commented
Without ->spa() it works fine (like this "hard refresh" I mentioned
11 replies
FFilament
Created by morawcik on 5/25/2024 in #❓┊help
JS files are commented
Yes
11 replies
FFilament
Created by morawcik on 5/25/2024 in #❓┊help
JS files are commented
Also I can see in response that those scripts are not commented - seems like they are commented after that.
11 replies
FFilament
Created by morawcik on 5/25/2024 in #❓┊help
JS files are commented
Nope - I even manually uploaded files to have everything the same
11 replies