CodeWithDennis
CodeWithDennis
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
You don't need raw queries you can still do it with ORM but just needs to know how.
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
I think you should take a look at your getStatusAttribute logic.
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
Yes, but was just refering to your statement.
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
You should check debugbar and check how many queries are executed.
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
But looking at this code it might not be a great approach 😅
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
Thats not true, we have the concurrency helper. https://www.youtube.com/watch?v=PMEQ93kBc7U
18 replies
FFilament
Created by Garadit on 10/31/2024 in #❓┊help
Lazy load table column
Can you show me that column?
18 replies
FFilament
Created by jjo63 on 10/22/2024 in #❓┊help
Adding a record count alongside a navigation link
No.
10 replies
FFilament
Created by jjo63 on 10/22/2024 in #❓┊help
Adding a record count alongside a navigation link
I made a post about navigation badges yesterday hopefully it helps; https://x.com/CodeWithDennis/status/1848263961294041246 (Laravel v11.23 if you want to use Flexible)
10 replies
FFilament
Created by xy on 10/20/2024 in #❓┊help
How to make sure only one navigation group gets uncollapsed
Perhaps you can do something with the localStorage.collapsedGroups ?
2 replies
FFilament
Created by Kaaiman on 10/22/2024 in #❓┊help
SelectFilter default not working
^ So like @toeknee said you should use an array, but since you also use an enum you need to grab the value of that enum.
8 replies
FFilament
Created by Kaaiman on 10/22/2024 in #❓┊help
SelectFilter default not working
Well because you use multiple it expects an array of values.
8 replies
FFilament
Created by Kaaiman on 10/22/2024 in #❓┊help
SelectFilter default not working
Make sure you use RefundStatus::Pending->value.
8 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
Maybe you can find something useful in this code.
Tables\Actions\Action::make('quickEdit')
->fillForm(fn(Company $record) => $record->toArray())
->form(fn(Form $form) => CompanyResource::form($form))
->action(fn(Company $record, array $data) => $record->update($data))
Tables\Actions\Action::make('quickEdit')
->fillForm(fn(Company $record) => $record->toArray())
->form(fn(Form $form) => CompanyResource::form($form))
->action(fn(Company $record, array $data) => $record->update($data))
19 replies
FFilament
Created by EMMAN on 10/20/2024 in #❓┊help
How to Determine if the dashboard is using dark or light mode in Filament?
You can also try; document.documentElement.classList.contains('dark')
13 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
Again i think its your relational setup.
51 replies
FFilament
Created by Enas on 10/20/2024 in #❓┊help
Add link to description
Oh sorry i didn't read you wanted to open another form.
5 replies
FFilament
Created by Enas on 10/20/2024 in #❓┊help
Add link to description
new HtmlString('<a href="#">Click here</a>')
5 replies