IndomieRendang
IndomieRendang
FFilament
Created by IndomieRendang on 11/24/2023 in #❓┊help
Get updated row selection on modal open
I've opened since september but was tagged as low priority, but considering the case above, I think this is important. For this moment, I expect someone could help me to solve this problem using browser events or anything if possible.
3 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
actually there is a spatie plugin can handle it seamlessly
17 replies
FFilament
Created by IndomieRendang on 11/17/2023 in #❓┊help
Anonymous Action doesn't work correctly inside repeater?
hmmm... seems your issue is closed because it was the same/similar with another opened issue... Hopefully will be fixed soon
8 replies
FFilament
Created by IndomieRendang on 11/17/2023 in #❓┊help
Anonymous Action doesn't work correctly inside repeater?
Is it considered as bug?
8 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
Let's back to your original code above... If we want to combine both fields, then we need to get both values... so $set('slug', Str::slug($state . ' ' . $get('last_name')); for name and $set('slug', Str::slug($get('name') . ' ' . $state); for last_name
17 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
Oops... sorry, I think it is not formatStateUsing...
17 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
The livewire is updated when there are changes on live components, and all properties will be re-evaluated on every livewire update, which means $get values are also updated.
Forms\Components\TextInput::make('name')
->required()
->maxLength(255)
->live(debounce: 500) // maybe ->live(onBlur: true) feels better
Forms\Components\TextInput::make('last_name')
->required()
->maxLength(255)
->live(debounce: 500) // maybe ->live(onBlur: true) feels better
Forms\Components\TextInput::make('slug')
->required()
->maxLength(255)
->formatStateUsing(function ($get) {
// edit the following code as you want to handle more possible cases such as when the name is empty, or when slug already typed manually so we don't want to bother that modifications, etc. I just typed it quickly
return str($get('name') . '-' . $get('last_name'))->slug();
}),
Forms\Components\TextInput::make('name')
->required()
->maxLength(255)
->live(debounce: 500) // maybe ->live(onBlur: true) feels better
Forms\Components\TextInput::make('last_name')
->required()
->maxLength(255)
->live(debounce: 500) // maybe ->live(onBlur: true) feels better
Forms\Components\TextInput::make('slug')
->required()
->maxLength(255)
->formatStateUsing(function ($get) {
// edit the following code as you want to handle more possible cases such as when the name is empty, or when slug already typed manually so we don't want to bother that modifications, etc. I just typed it quickly
return str($get('name') . '-' . $get('last_name'))->slug();
}),
17 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
If yes, just make the name and last_name live, then make the slug field get and combine from those two fields... Maybe as simple as this
Forms\Components\TextInput::make('slug')
->required()
->maxLength(255)
->formatStateUsing(function ($get) {
return str($get('name') . '-' . $get('last_name'))->slug();
}),
Forms\Components\TextInput::make('slug')
->required()
->maxLength(255)
->formatStateUsing(function ($get) {
return str($get('name') . '-' . $get('last_name'))->slug();
}),
17 replies
FFilament
Created by Soundmit on 11/18/2023 in #❓┊help
Making slug from 2 input
Do you want to combine them?
17 replies
FFilament
Created by IndomieRendang on 11/17/2023 in #❓┊help
Can I defer-loading a table column/cell?
Good idea, will try to explore it... Thanks for the idea and your time
8 replies
FFilament
Created by IndomieRendang on 11/17/2023 in #❓┊help
Can I defer-loading a table column/cell?
The api is strong enough to serve massive requests, but each may need few seconds for the response as it needs to fetch from connected device. So yeah it can be considered as throttling but it is the nature of that api. Outside the filament, I can make pool request to grab them concurrently, but not sure with livewire or filament table. Is it possible to merge the responses with the eloquent data before reaching the table? I couldn't find similar way like form->fill() or mutateDataXXX for filament table squint
8 replies
FFilament
Created by Bagus A on 11/7/2023 in #❓┊help
How to create infolist for RelationManager
Yups. Import the Infolist class
9 replies
FFilament
Created by lazydog on 11/7/2023 in #❓┊help
Custom Page
yepp... that also applies for other methods like form(), table(), etc
9 replies
FFilament
Created by lazydog on 11/7/2023 in #❓┊help
Custom Page
static methods are for resources to be retrieved by the "page" class later. If you declare directly in the page class, it should be public function infolist(Infolist $infolist): Infolist
9 replies
FFilament
Created by sadiqgoni13 on 11/7/2023 in #❓┊help
Filling a form temporary
I think simply add 'status' to the form, make it 'draft' or whatever you want by default, then admin can change the status later to be 'confirmed' or smth else
5 replies
FFilament
Created by lazydog on 11/7/2023 in #❓┊help
Custom Page
why static?
9 replies
FFilament
Created by Bagus A on 11/7/2023 in #❓┊help
How to create infolist for RelationManager
Hover to the underlined words to see the error. Usually that happens when the Infolist class isn't imported yet
9 replies
FFilament
Created by H.Bilbao on 8/21/2023 in #❓┊help
Multi-tenancy - resource accesible for all users
Then to make sure the Global panel itself is not accessible (we only need the shared resources, and the advantage of artisan commands), we don't register it to the app...
18 replies
FFilament
Created by H.Bilbao on 8/21/2023 in #❓┊help
Multi-tenancy - resource accesible for all users
Let's say we create panel named "global" without tenancy, make CategoryResource there, then the other panels i.e. Tenant and Admin panels, they both discover the CategoryResource, and don't forget to maintain the policy
18 replies
FFilament
Created by H.Bilbao on 8/21/2023 in #❓┊help
Multi-tenancy - resource accesible for all users
I think we're still talking about the thread
18 replies