Filament

F

Filament

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

Join

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

Field contains invalid files error

Hello all, Here is my code: ```php Fieldset::make(__('Images'))...
No description

Tenant Dropdown Stacking Issue

How to make this Tenant dropdown on top of all elements, This is not just on the dashboard some elements like multi select has the same issue. I tried adding css styling like z-index but it is still not working.
No description

Is this available Bulk Action form in version 4?

currently,this schema form is not working.
BulkAction::make('gift') ->schema(function (Collection $records) { TextInput::make('name');...
Solution:
just upgrade to v 4.02 and it's solved.

What can I use instead of Placeholder in version 4?

'Filament\Forms\Components\Placeholder' is deprecated in version 4. My current code
Forms\Components\Placeholder::make('name') ->label('Name') ->content(fn ($get) => $get('name')),...

Custom RichEditor LinkPicker

I'm trying to create a custom Link Picker to replace the original Link Tool in the Editor, because I want to be able to add class names to a attributes. For the Editor in the Panel it works, but using it as plugin for the RichContentRenderer seems to parse both, the original and my custom one, resulting in two nested a-Elements. link-picker.js ```...

Custom profile form with isSimple.

Hi, in the docs you can create custom form pages for profile settings, but how can this be used with isSimple parameter if we want to use the standard page layout. Thanks 🙂...
Solution:
Managed to fix the issue using this code:
profile(EditProfile::class, isSimple: false)
profile(EditProfile::class, isSimple: false)
...

how to pass parent record to relation manager bulkaction

I have this bulk action in a relationmanager: I want to pass, alongside the $records, the parent record. how can I do that? ```php BulkAction::make('Marquer comme réussi')...
Solution:

Custom FileUpload state validation after upload

I am working a a project where I need to get the TempUploadedFile from FileUpload and extract information from the image (using external API to read information) and make sure the document code is valid. If not I want to show user an error message and fail the upload (red color on FileUpload will be good indicator). This FileUpload field is located in a Form inside a FilamentPage. I have tried using afterStateUpdated(fn(FileUpload $component, Set $set) => $this->extractInformation($component, $set)) to call a function for all the logic and within it I tried using _uploadErrored as well as throwing ValidationException directly but neither of them worked. ...

issue in filament v1

i had to install filament v1 and i'm not familiar with it. how can i remove bulkaction delete button and create button and edit button in list page?