Filament

F

Filament

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

Join

Brick Money

I am using a third party package for the money field. I have cast with get and set attributes accordingly. Storing and viewing the record is no problem, bur on trying to edit the record i get an error: Property type not supported in Livewire for property: [{"amount":"100000.00","currency":"KES"}] For context: <?php...
No description

Page with Selects and a Chart

Hi! I've created a "Sales" page, with 2 selects on it, and a table. I load the data for each select when changed. Everything is ok. But now, I would like to add a line Chart. I've tried to ways: - If I create a Widget, render it with getFooterWidgets, but the widget get's its data in the widget class, I don't know how to send the value of selects in the page to the widget. - I can render a chart in the view... now trying......
No description

Grid table, align stack component to bottom.

Hi, I am trying to align the product title with the price at the bottom of the "card", but it is not working. I'm not familiar with tailwindcss. How do I change my code to stick the stack with the product title and price at the bottom, regardless of image size? (see attachment). ```php ->columns([ Tables\Columns\Layout\Stack::make([...
Solution:
have found an almost complete solution 🙂 ```php Tables\Columns\Layout\Stack::make([ Tables\Columns\SpatieMediaLibraryImageColumn::make('image_link') ->collection(config('project.product_media_collections.images'))...
No description

how to check what (if) attributes were updated in afterSave() method.

I need to fire an API call to let some endpoint know if model were updated.

Markdown editor with custom buttons

I'm working with the Markdown editor with custom buttons. My goal is to create a dropdown button in the editor that allows inserting placeholders into the text. These placeholders would later be substituted with the actual values of those variables. Any advice, resources, or code examples would be greatly appreciated. Thanks in advance!...

Sumarize IF.....

I have this column in my table: ```php TextColumn::make('detalles.total') ->label('Total Detalle') ->getStateUsing(fn ($record) => $record->anulado? 0 : $record->detalles->sum('total'))...

Is it Possible to Open a Modal within Another Modal in Laravel Filament?

Hello Filament Community, I am working on a project using Laravel Filament, and I came across a situation where I need to open a second modal inside an already opened modal. In other words, I want the user to be able to trigger a second modal from within the first modal and have both modals function independently of each other. What I am trying to achieve:...

create stacked bar chart with apexcharts

Hi everyone, i am asking how creating a stacked bar chart with apexchart? thanks
Solution:

hours input

Can someone build me a clean hours input? Will pay to have this done asap. I need something nice and clean like this.
No description

How to refer to filament semantic color in blade file?

This is a example filament button component, which render a button with the 'success' color. The 'success' then can be set up to be whatever color from tailwind. ``` <x-filament::button color="success"> New Button </x-filament::button>...

I get Class "App\Filament\Pages\Dashboard" not found after removing Dashboard on Production

I wanted to create a custom dashboard instead of the default panel dashboard. I named my custom dashboard class something other than Dashboard, which I had no issues with when developing locally. Then when pushing my changes to Production (Staging environment), I get the Class "App\Filament\Pages\Dashboard" not found error. Has anyone else experienced something similar? It is very strange that I get the error on production but not locally....

Auto-Closing extraModalFooterAction is buggy

Hi everyone. I have defined headerActions on an EditRecord page that should call a modal form. In the footer there are not the standard actions, but a kind of paging function and separate actions for saving and closing. For this I use the function extraModalFooterActions(). For closing, I create the following action in extraModalFooterActions():...

How to change the Fields Color

I'm a newbie in PHP development overall, I try to make form using Form Builder and I'm trying to change the label color into black. I already try using extraInputAttributes and extraAttributes, but the color just won't change. Also how to remove the extra arrow in the Select Fields. Thank you in Advance 🙂...
No description

Filament Registration page

I want to add some text in top and bottom of the Filament registration form. which i highlighted in yellow color . How it is possible any one can help?...
No description

Multiple Filament tables on a Livewire component

I just wondered if there's a simple way around this yet? As opposed to using two separate components?...

Header and Sidebar Customization

I want to customize some styles on the header and sidebar, how should i do this?

Policy depends on request path

Hello All, I have the following problem: I have a [event] resource and the resource view page have a couple of relations (eg. attendees, vendors, etc). ...

using vue js inside livewire component

Is it possible to implement use vue js inside livewire component in filament?

Custom field button color

I create a custom form field to record voice. How to change <x-filament::button> color when i click on it. This is my button code: ``` <div> <x-filament::button...