skeemer
skeemer
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (?Plan $record, Forms\Get $get) => ($record?->partner ?? Partner::find($get('partner_id')))?->getPriceOptions() ?? []),
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (?Plan $record, Forms\Get $get) => ($record?->partner ?? Partner::find($get('partner_id')))?->getPriceOptions() ?? []),
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
oops, that's not quite right
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
no ternary needed
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (?Plan $record, Forms\Get $get) => ($record ?? Plan::find($get('partner_id')))?->partner?->getPriceOptions() ?? []),
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (?Plan $record, Forms\Get $get) => ($record ?? Plan::find($get('partner_id')))?->partner?->getPriceOptions() ?? []),
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
probably easier to just use null coalescing
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
Thank you, I forgot about that one since I primarily used Forms by itself until recently.
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
There's no default since I'm pulling the options from Stripe based on the account selected.
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
I can still resolve from the selected id. So what's the injection for the data during create?
20 replies
FFilament
Created by skeemer on 12/14/2023 in #❓┊help
How do i get to the data while doing resource create?
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (Plan $record) => $record->partner?->getPriceOptions() ?? []),
Forms\Components\Select::make('logo_price_id')
->label('Logo Price Id')
->nullable()
->options(fn (Plan $record) => $record->partner?->getPriceOptions() ?? []),
20 replies
FFilament
Created by skeemer on 8/11/2023 in #❓┊help
Target class [cache] does not exist.
I was able to fix this by changing to ->discoverResources(in: base_path('Modules/Blog/Filament/Resources'), for: 'Modules\\Blog\\Filament\\Resources'). This is not a good solution, but will have to do since there doesn't seem to be any progress on this.
2 replies
FFilament
Created by cpbret on 8/11/2023 in #❓┊help
Always use the mobile Menu
It looks like alpine is using lg: classes as well, so you could probably still do it with CSS.
14 replies
FFilament
Created by cpbret on 8/11/2023 in #❓┊help
Always use the mobile Menu
Oh, you're just referring to how it shows when it opens. The functionality from $panel->sidebarFullyCollapsibleOnDesktop() works as far as everything else.
14 replies
FFilament
Created by cpbret on 8/11/2023 in #❓┊help
Always use the mobile Menu
I'm not quite sure I understand you correctly, but if you're trying to use the sm/md formatting for everything on all desktop sizes, what about just overriding the tailwind config for lg/xl to a really large number?
14 replies