Validation message is not showing
Hello All I got this issue when I tried to test the validation, only the key of the message is showing but message is not, I published lang folder by php artisan lang:publish but still it the same
screenshot showing what I have...
RelationManager section icon
Hello, I'm trying to add an icon to the section for my RelationManager. I've added an $icon variable to my RelationManager but it doesn't show up anywhere.
Solution:
I think you are correct, doesn't seem possible with built-in functions. I ended up using the following workaround:
I added the $icon variable like usual at the top of the file and in the 'table' function I added the 'heading' function to manually set it to a HtmlString. The code looks like this:
```php
->heading(new HtmlString(...
a weird problem with action
i have a simple action which change the state of a column
```
EditAction::make()
->hidden(fn (): bool => $this->record->reservation->close || $this->record->is_chosen)
->record($this->record)...
Overflow textfield in view modals
im having issues with this one description modals that overflow its text , how to fix this?
How to add a button inside a section in form?
I want to add unset button to to photo and video
Example
```...
How to change TimePicker format using 24hour instead of AM and PM
since im based in country that rarely using AM PM, i want to use 24 hour format instead, can it do that?
Solution:
what about
->native(false)
?Making hidden attribute searchable
hello guys.. is theres any way i can search my 'code' value even if it hidden?
i already display the 'code' value inside my view, but display it in view only will make it unsearchable
or is there any other approach into this?...
how render a table inside a tab?
hi i would like to load a table inside a tab like image attached, but that table should lookup info depending on the selected user id. i know i need to create a livewire custom component, but any idea to follow? and also another question how i call that livewire component inside lets say Tab #2. any tip appreciate it. thank you
Solution:...
\Filament\Forms\Components\Livewire::make(\App\Livewire\ClientesFacturas::class)
\Filament\Forms\Components\Livewire::make(\App\Livewire\ClientesFacturas::class)
Icon Color Issues
I'm trying to build a table and so far it works well except for the icons. I am able to change the icon that loads up but the color always stays the same. What could be the issue? Thanks in advance.
Solution:
preset has
darkMode: 'class'
You need to add dark
class to the html..
```html
<html class="dark"......tag component with colors?
hi any component to achieve this (attached image)?, so i can have diff color depending of the status (field on my db). any tip will be very appreciated, thank you
Solution:
use a ViewField
```php
ViewField::make('status')
->view('custom-status')...
Repeater is not working in custom modal form.
I define a custom modal form in my table, I define a form for it and establish the hasmany relationship, but when I open the form, the repeater comes empty.
How can I solve this, what do you suggest?
Tables\Columns\TextColumn::make('relation_order_id')...
Minifying JS/CSS assets
I'm trying to work out how to minify my JS and CSS assets in production. I'm using the
enlightn
package and it flags a number of assets which aren't minified, including both core Filament resources such as public/css/filament/forms/forms.css
and public/js/filament/filament/echo.js
as well as plugin resources such as public/js/saade/filament-fullcalendar/components/filament-fullcalendar-alpine.js
.
Running npm run build
doesn't minify them and here is my Vite config:
```...Fill fileupload not working
filling the fileupload on the header action works but filling the form doesn't work.
dd($form) shows that the fileUpload has a value but doesnt show the preview. Why is that ?...
Do I need Multi Tenancy?
HI all,
I want to build application where admin can add Client/Organisation.
Each user can be part of just ONE Client/Organisation
...
Action button
Is there a way to move the action delete button, inside a repeater, on a new column, on the same line as the product? without touching the css. thank you
image not show. please help
ImageEntry::make('driver.photo')
->label('Driver image'),
// User model
...Hot to add customer support help widget
I use drift.com for customer support, I want to add it as a pop up using their code into my admin panel. How do I create it?
Change profile route slug?
Is it possible to change the profile route slug?
Like it is possible to do this for autentication routes in the panelprovider:
``` ->loginRouteSlug('login')...
Session ID is not shown properly
Hello , I want to have a table where I display the session within my app , I can see everything correctly behalve the id of the session which is always represented by 0 but the search on the real value works perfectly .
Do you know why I can't see the value of the session ?
Many thanks...
Solution:
ok I foumd to make it work finally
Store order (in session?) in custom Repeater
Hi, I've tried pretty much everything I can think of (Actions, “:wire:end.stop=”'mountFormComponentAction('' . $statePath . '', 'reorder', { items: $event.target.sortable.toArray() })'”, ...), but I can't find a solution. I am building a TabRepeater that displays the repeater content in tabs. I am now using x-sortable to be able to reorder the tabs. Unfortunately, the sort order is reset as soon as I add an entry. Can anyone give me a nudge in the right direction?
Solution:
Little update:
The solution above was not the one I was looking for. Instead, I needed '$wire.mountFormComponentAction()'.
```HTML...