Filament

F

Filament

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

Join

modify apexchart burger menu

hi everyone, i wish to know how to customize the right menu titles of a bar apexchart? thanks
Solution:
'chart' => [ 'type' => 'bar', 'height' => 287, 'background' => '#ffffff', 'stacked' => true,...
No description

Spatie Image Mass Assignment Issue

I am using spatie media plugin, and implementing interface and trait in model. But i am getting this error, any resaon for it?
No description

How can I save data in custom modal?

``` Action::make('customModal') ->label('Custom Modal') ->action(fn ($record, $set) => $set('record', $record)) // Custom action ->modalHeading('Custom Modal Başlığı') ->modalContent(function ($record) {...

File Upload Issue

I add validation max size 2M and I try to add 1.9 M file then it shows error like this. The mountedTableActionsData.0.file.ca2ed8ee-98f8-4d33-83d4-e7664c4e9f62 failed to upload....
Solution:
The image sent is in base64. Try increasing the value of your client_max_body_size in php.ini (and maybe post_max_size too)
No description

Unique validation for TextInputColumn

How can I use uniqe validation for TextInputColumn on table ? (inline editor in table), also I need ignorerecord for updating

Can we show a table in the tabs inside the modal form?

I want to add a table to the places you see in the picture, a table where only the data of the record I entered will appear in the modal form. and these records should be editable, I tried repeater but the data did not come selected because it was a modal form, so I had a problem....
No description

How to Automatically Generate Invoice After Payment is created by admin?

Hi all, I'm looking for advice on how to automatically generate an invoice when a partial payment is logged. Ideally, I want the invoice to be generated immediately after the payment is recorded, with the option to preview, print, or download it. Does anyone have experience with setting this up or any recommendations on how to achieve this?...

How To Apply `->imageEditor` on FileUpload v2?

I want the user to be able to use the image editor when uploading an image. But in v2 is not available. What would u do to achieve to let use the image editor? Update to v3? Or is there a way i dont know that this may be achieved in v2? like somehow creating a custom component like v3? but im not sure if that can be done. ```php Forms\Components\SpatieMediaLibraryFileUpload::make('title') ->avatar()...

How to change this action button of repeater?

how to change this color since its not very noticeable
Solution:
```php ->addAction( function (Action $action) { $action->color('success'); },...
No description

State gone/refreshed on Custom Infolist Page when action clicked(Modal)

I just have some custom state that use ->state() not from resource for the data, and then have this issue when adding action on the headerAction on the Section, so i just move the action into getHeaderActions but still have same issue
Solution:
Solved, by using form components and then call that view Livewire

How to make wizard keep its input data after accidental refresh

By default if users accidentally refresh their browser, the wizard progress automaticly reset all input, How do i make it keep its inputted data? i dont want to frustate my users since the wizard have alot of steps...

How to access $state inside a Repeater item ->collapsed()

Hello. So I can access $state to set the ->itemLabel() But I don't know how to access $state to set ->collapsed() to true of false depending on $state['done'] ...

Reset password email - translation footer text

Hi fellas, I have issue to locate how chainable method that will allow me to override part "If you're having trouble clicking the "Reset Password" button...", does anyone know hot to override it?
No description

Select input not working when searchable is appended

The select input I added to my form doesn’t work in the sense that it return “School name is required” even though I have selected a school. I don’t face this issue when I comment out the searchable method
No description

Form not submitting user_id even though when I dd the submission the user_id is present

This is my form ```php return $form ->schema([ Forms\Components\Select::make('user_id')...

Unable to hide childItems in custom NavigationItem

I'm making a custom navigation setup and I want to conditionally hide an item from the childItems([...]), but it does not seem to work... this is a simple code to debug it faster, "nav-item-5" should be hidden ```php ->navigation(function (NavigationBuilder $builder): NavigationBuilder {...

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.