Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

[Table] [Filter] Is there any way to reflect the filter into query url?

As title, similar to v3 feature: https://filamentphp.com/docs/3.x/tables/advanced#query-string, i am required to reflect the filters onto URL query string, but there seems to be no configuration nor there is any documentation regarding this

Adding validation messages in afterStateUpdated hook for inputs

What I am trying to do: I am trying to run validation logic that needs to run a query to detect if something else is using a specific provided identifier from a live TextInput, and add error messages if it runs into issues. I do not want it to only show on form submission, I want it to update (debounced) as input is changed. What I did: ...

How to determine if a form has changes

This has been posted elsewhere, but the solution hasn't been quite clear or evident. Making a new post to continue the discussion we started in order to not hijack the original question, which was slightly different. The isDirty() method, when applied to '$record' will always be false, as $record will be linked to the original model. When applied to an instance of a livewire component, it still seems to return false whether any field has changed or not. What I am trying to do is this: within an action that is in a form in a resource, to have different behavior based on if there any fields that have been changed or not by the user. I was able to do this by comparing the state to the original data, but this seems a bit cumbersome and also requires formatting datetimes and boolean values, since they maybe represented slightly differently in the database versus the livewire component....
Solution:
here's one option, in your EditRecord and CreateRecord page classes add: ```php public bool $isDirty = false; ...

Reactive inputs?

Hi guys, is it possible in my example make material_price reactive and calculate its value when material_cost or material_margin changed? Right now I have afterStateUpdated method on these two inputs, but I have places where many more inputs affect just one. ```php MoneyInput::make('material_cost')...

Video embed and filepicker in richeditor filament v4

Video embed and filepicker in richeditor filament v4,how do i enable it?

Multi-Tenancy: remove the tenant URL slug?

Hi, I am using Filament tenancy, and I was wondering if it was possible to remove the current tenant's slug from the URL and keep an URL like there's no tenant. ``` // normal non-tenant URL example https://my-domain.com/dashboard...

Guide on reactivity?

Why do I have it impossible to make a custom livewire component for reactivity? For example, I have a backend job that processes employees salary calculation. I need somewhat feedback on the panel side to show progress. This is achieved by having a header action button that says "Calculate payroll" followed by "Confirm" button, then popping up a modal to show progress....

Resource breadcrumbs

Hello, I am trying to define the intermediate part of the resources breadcrumbs to be a bit more correct. Sadly, the intermediate part of the breadcrumbs is not capitalized by default. I would like either to be able to capitalize it or to replace it alltogether with the record current title....
No description

PDF Upload in RichEditor

How can I upload pdf using RichEditor, this was there by default in V3

Click Event Guava Callendar

Hi Everyone, i have oen case on my Calendar with Guava Calendar, when i click the event, always shown error 404 Not Found?? Can anyone what the mistake with the code? or my laravel .env ?
No description

RichEditor source code button

Hello every one, how in 4 version i can add source code button to RichEditor? Thnx....

Do exporters not queue a job by default?

```php BookingsExportAction::make() ->label('Export Bookings') ->modalHeading('Export Bookings') ->modalDescription('Export list of bookings and the related user data to a CSV file.')...

$rawState Error with RichEditor

Hi, I have a problem with my RichEditor. I use a relationship in my model form and when I save it without changing the text in the RichEditor than I get this error: Filament\Forms\Components\RichEditor::Filament\Forms\Components{closure}(): Argument #2 ($rawState) must be of type ?array, string given, called in /vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 36 ...

Menu in both top and side bar, is it possible ?

I have 2 panels, 1 is for guest users, ie. not authenticated and works like a public area, for this panel there is no sidebar so menu items appear in the topbar. However, when a user logs in, I want to be able to also show the same menu items in the top bar as used in the guest panel, but I also want to show the sidebar with some different menu items.

Custom CreateAction in getHeaderActions redirects to Createpage of Resource

I try to make a CreateAction on a Resource to create a record of a different model. This worked in Filamentphp 3. I updated to Filamentphp 4 and now this is not working any more. To not trap into some self-made problems like cache i created a new app from scratch with FilamentPHP 4. Now i stripped everything down and have a Foo and a Bar Model with Resources and i addes a CreateAction to ViewBar.php:...
Solution:
ok i think we are getting closer. maybe i'm a little disapointed because it was super intuitive in v3 and now just different 😉 this works: ```php...

Table actions can't click sometimes.

Problem: Getting 404 errors in EightyNine Excel import in Filament v3 relation manager. In relation manager table I can't click sometimes all the action like edit, delete.
No description

Using filament4 form builder as standalone components in an Laravel 12 app?

I read from another laravel developer that because all of Filament is livewire components, you can use whichver parts you want as well as the typical panel/resource workflow. I'm working on a project where I think this might be great and would love to use the Form objects for the editable UI and am not too sure where to start and don't see any references to this in the documentation. Can anyone point me to a good resource on how to do this if its not required to maintain the resource/panel dependencies?...

Filamentphp v4 , database notifications

Im using stancl/tenancy multi database the notification sendToDatabase are always goes to the central database is there is something to make it goes the tenant context ?

Widget in the infolist

Hello Can widgets be displayed in the infolist ?...