Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

RelationGroup collapsible is possible?

Is it possible to make a section in a RelationGroup collapsible?
No description

Move Reapeter Field Add Action Btn

I wan't to move the add new action in a repeater field to the top of the repeater field and also add a new field from the top. Does anyone know how to do this? I want this because one repeater field existst of 3 fields. For mobile it will be a long list, so it would be nicer to just add from the top....

Pass form data (`$state`) to `ChartWidget` in resource Create page

I have embedded a ChartWidget in a resource Create page (of type CreateRecord) via the getFooterWidgets() method. Is there a way for the ChartWidget to access the data in the form fields (e.g. via a $state variable or similar) before the form is submitted (i.e. there is no record in the database table yet)? What I'm trying to do is populate a chart after clicking a "Calculate" button (i.e. Action) on the form and would appreciate any thoughts as to how to approach this....
Solution:
where are you using this action? I think you will need to inject $livewire.. ```php ->action(function($livewire) { ...

Still having css issues with Breeze

hi i have done some more fiddling around and if I add the preset on the default tailwind config the css messes up on the Breeze pages and any other page using the default app.blade layout.
here is the code for the default tailwind config and I have uploaded an image of what the dashboard looks like for Breeze, as soon as i remove the preset the dash looks fine, but of course the filament table on the frontend full page livewire component loses the colors etc. Thanks...
No description

Disable navigation in one resource but still shown

How to make a navigation resource is still shown but disabled / not clickable?

12 hr format in TimePicker

I'm trying to show the time picker in 12 hrs format instead of 24 hrs. I have tried the code below but still getting the same output: TimePicker::make('endTime') ->label('End Time') ->withoutSeconds()...
No description

Confirmation before navigating away

Hi everyone! Is there a plugin or an easy way to implement functionality that shows a popup warning when navigating away from the current page without saving changes in the resource edit view?...

Not authenticating on login

Not sure what step im missing... When I go to my login page, and login. It just redirects straight back to the login page. If I go to the Authenticate middleware, and dump out $guard = Filament::auth(); it returns false... Not sure why?...

Missing Bulk Actions

Hi, I am having an issue with missing bulk actions. I have no idea when they dissapered or even if i had them at first place......
No description

Toggle Column Dynamic Label

He fellas, just wondering if there is a way to pass dynamic value into label (Like active and inactive based on status). I have seen that it accepts closure but only $record is available but it gives me null...
No description

groupby another relationship column in chart

Hi everyone, i dont know how to group by a relationship column like: $data = Trend::query(User::query()->with('service:name,id')->groupBy('service_id')) ->between( now()->startOfYear(), now() )...

How to group Item in Report Plugin

I am trying to use this Report Plugin https://github.com/eighty9nine/filament-reports Instead of listing Location as column I would like to put it as Group an list items for the Location beneath it. The owner gave this suggestion to use map, but it seems there is some missing bracket somewhere https://github.com/eighty9nine/filament-reports/issues/24#issuecomment-2263863220 public function body(Body $body): Body {...

Update input value of a resource form from a relation manager.

I have a relation manager with test answers with a column "points" and a main resource (test result) which sums relationManager points, saves it to database and displays in a form, but when I edit points in one of the relation manager test answers I can set the new database value to test result points, but i cant update value in a form without restarting a page. How can i update live value in a form without reloading the page?.
No description

Getting orderColumn value on post with Repeater

Hi there, Is it, somehow out of the box, possible to get the updated orderColumn of the Repeater in the POST-request? When I now edit the order in the record and press 'save', the order is not send with the request. Thanks!...

Form builder, any loop view?

In Form Builder, is there anything like Infolist's RepeatableEntry?

2fa email solution forest

https://filamentphp.com/plugins/solution-forest-email-2fa I used Laravel v10.48.18 (PHP v8.3.4) with filament 3.2 What I am trying to do: - I the try to implement the plugin into one of my panel...
No description

How to make a URL column?

Is there anything like Forms\Components*Url*::make? where you can provide a display text and url, and it will render a link...
Solution:
The url method accepts a callback so you can just access the record object to get any property from the model, something like this (obviously no idea what your column setup is)
Tables\Columns\TextColumn::make('url_display_text')
->url(fn ($record) => $record->url),
Tables\Columns\TextColumn::make('url_display_text')
->url(fn ($record) => $record->url),
...

Chart Widget - Ticks

I have a chart that is measuring user logins. However at small numbers or if there is no data the chart displays the possiblity of negative numbers and .5 of ticks. This doesn't make sense for this chart, you can't get negative logins or .5 of a login. ...
Solution:
We are using Chart.JS for the charts so check their docs. You probably want to set a min value for the y-axis: https://www.chartjs.org/docs/latest/axes/
No description

`Forms\Components\FileUpload` image preview

In create view, I want a image preview, so user can preview what they are going to upload. In edit view, I want a preview, so that user can see what they'll replace. How do you do that?...

Display some fields only on item-edit or item-create pages

Is there a way to let some fields only appear on edit pages, and some other fields to only appear on create pages? Currently whatever displays on create page also displays on the edit page, because they are both based on public static function form(Form $form): Form { ... of the Resource file....