dwiser
Filament Charts
Looks like you need the InteractsWithPageFilters trait. Check out the whole section here https://filamentphp.com/docs/3.x/panels/dashboard#filtering-widget-data
7 replies
Plugin Date Range Picker Problem
You're storing a string of two dates into a column that is only accepting one date.
You either need to store "04/01/2024 - 04/30/2024" in a string column or separate into a 'period_start' and 'period_end' columns.
4 replies
Is it possible to use the filament control panel for this?
Creating a second panel shouldn't add much complexity. If you create and register one filament panel, you just do it again for the second panel. https://filamentphp.com/docs/3.x/panels/configuration#creating-a-new-panel
The only real complexity in my mind is redirecting the user during the login process but you can override the default Login page to handle that logic.
https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features
9 replies
Livewire table component searchable() / sortable/filter not working
You'll have to explain your situation a bit more but typically you'd use filament resources to create the CRUD pages for you. If you want something separate from the admin panel, you can create a "frontend" panel with a bunch of custom pages.
6 replies
Action button for creating relation on view page
In my case, that doesn't work because I'm not in the context of a form or resource.
Filament\Resources\Pages\ViewRecord
is being passed through and doesn't have an $ownerRecord property.
However, that led to me searching through methods on the ViewRecord page and I found the ->getRecord()
method which gets the model for me and can be used in the current context.
Working code for my situation is here:
This will give me a button on the view page of a record where I can click to create a new relationship and prefill the ID (uuid) of the current resource.5 replies
Livewire table component searchable() / sortable/filter not working
App\Livewire\ListCircuits
looks fine as far as I can tell. I don't see @filamentScripts
or @filamentStyles
in your blade file though.
If you're using the full panel install then I'd suggest replacing your welcome.blade.php
file with a Filament Resource and generating pages the 'filament' way.
https://filamentphp.com/docs/3.x/panels/resources/getting-started6 replies
Filament table enum: enum does not exist
Are you looking at v2.x documentation? I don't believe that exists on v3.x tables.
In v3.x you have a few options:
An Icon Column
https://filamentphp.com/docs/3.x/tables/columns/icon#overview
A Toggle Column
https://filamentphp.com/docs/3.x/tables/columns/toggle#overview
Creating an actual Enum class
https://filamentphp.com/docs/3.x/support/enums#overview
2 replies
Panel custom Url ? like the demo web ?
Are you talking about the hostname or the panel path?
https://filamentphp.com/docs/3.x/panels/configuration#changing-the-path
6 replies