Filament

F

Filament

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

Join

I can't select a value from the toggle buttons

my code: ```ToggleButtons::make('available_days') ->label('Dias Disponíveis') ->helperText('Selecione os dias disponíveis para o profissional.') ->live()...

V4 button text colors

As far as I understand, button text colors are generated based on the background color. But this results (in my eyes), into uggly combinations like this. Any chance to fix this?
No description

Lost in docs

Hi, I am totally new to filament and livewire but I have a little bit of experience in Laravel. I am just trying to learn filament v4 by creating a project, but the docs are seemed not-so-helpfull. I'm currently trying to add a form to a custom page, but I do not even understand where to put my code. Even if I simply copy-paste the code I saw in web, an error occurs. Am I looking at the wrong page for learning this (https://filamentphp.com/docs/4.x/navigation/custom-pages) ? Or should I start with Livewire documents? Sorry for poor english and thanks in advance. ```php...
Solution:
Pages are livewire components. You can use this section to add a form to the page

Access current resource page from widget

Is there a way to access the current resource (e.g. ListRecords) where the widget (Filament\Widgets\StatsOverviewWidget) is included so i can call it like $resource->doSomething()?
Solution:

Dynamic Fields in a Repeater Table

Hi! I Know everyone is busy so I'll try my best to keep this short. I have a Repeater that is configured to show as a table. ```php...

Need help with updating MoneyInput

I want to get dynamically my currency. Right now i do it like this static: ``` MoneyInput::make('credit_limit') ->label(__('admin_panel/account.form.label.credit_limit')) ->inlineLabel()...

V4 Custom data in a RelationManager

I want one of the tabs of my User's relation tables to use custom data. I assume I need to use a relation manager for that, but how do I use custom data in a relation manager? I tried ```php class ResultsRelationManager extends RelationManager {...
Solution:
There's not much difference.

nested modal action not working in v4? even bulk action.

Hi. I have a action modal and show table view with schema. in this table view, when I try with bulk action schema not appear modal in this.
Solution:
after upgrade to v4.0.2 it's working well . thanks
No description

How to handle custom Repeaters relationship?

I have a custom repeater and I am not sure how to handle the relationship. In the orginal one you could just pass the relationship but I'm not sure how to implement it for custom repeater. ```html...

Repeater with ->table( is not showing as table

I tried to replicate the example from the docs and want to display a repater table in a form. The following code shows a regular repated form - not in a table. ```php class ContainerForm {...
No description

$component->onColor(Color::Pink) broken in V4

In V3, I was able to pass the Color enum into the onColor method, but this is throwing an errors in V4. The error is Closure|string|null, array given, which makes sense as the enum value is an array. In V3, the onColor method was public function onColor(string | array | Closure | null $color): static It would be nice if this worked in V4....

after upgrade panel with tenant got 500 error

Hi i just upgrade v3 to v4. On v3 panel with ->tenant(model: Company::class, slugAttribute: 'slug') works, but after upgrade i got 500 error without any log (storage\log\laravel.log), so i can't debug what happend!! if i remove ->tenan(xxx) from the panel, all work. i create a new panel using php artisan make:filament-panel clients, add ->tenant(xxx) and got the same error !! ...
Solution:
I add on panel: ->tenant(model: Company::class, slugAttribute: 'slug',ownershipRelationship: 'users') ownershipRelationship !!!...

RichEditor with SpatieMediaLibrary use withResponsiveImages()

Any chance to do something like this for the RichEditor? ``` public function setUpRichContent(): void { $this->registerRichContent('content')...

ImportAction - file size validation error - Need to increase maxSize limit

Hey everyone! 👋 I'm having trouble with file size validation when importing a CSV file using Filament's ImportAction. Here's my setup: My current ImportAction configuration:...
Solution:
check this
No description

Weird errors

After upgrading my project to v4 i added a modal into my blade component and when i load the page i get these error under the console also after i click on the button that triggers the modal i get the errors << VM3406 livewire.js:1127 Uncaught ReferenceError: isOpen is not defined at eval (eval at safeAsyncFunction >> and << VM3422:3 Uncaught (in promise) ReferenceError: isOpen is not defined...
No description

Validating multi-select fields

Hey, How would you properly validate the options for a multi-select field in Livewire? While it works well without the multiple attribute, the validation doesn't seem to be applied when it is added. Adding in doesn't seem to help either. What am I missing? ```php...

Action within Action->Slideover()

Hi All, I upgraded a project from V3 to V4. Almost everything works as normal. ...
Solution:
This is working now in the most recent release (V4.0.3)

Difference between RepeatableEntry and Repeater

Hi All, Can someone explain me why the data is different between a RepeatableEntry and Repeater I have a action with slideover to show me records from a relationship (code below)....
Solution:
I didn't understand what you said, anyway, this is the docs reference to fill the form with existing data
No description

Colours differ in V4

I am migrating to v4, but the custom colour I registered to be the primary for the panel looks a lot darker now and no longer matches the brand. ``` FilamentColor::register([ 'primary' => '#FC9222',...
No description

Using ->native(false) destroys the appearance of the select

Hello, Since updating to Filament v4, I've been having a problem with my selects using ->native(false) See screenshot....
Solution:
I did a clean install and reinstalled each package one by one to identify the error. The problem comes from the “saade/filament-autograph” package: “^4.0,” which generates unnecessary CSS that interferes with Tailwind... Here is the code that is causing the problem:...
No description