Filament

F

Filament

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

Join

How to order images when using Media Library

Hi, Im using Spatie Media Library and the images are displayed in my form and table in reverse, so the bottom one is ordered 1 and the top one is the last. How can I change this please?...

$tableSearch query string removes leading zero's

When i enter a search term like 100.100 it formats it to 100.1, when i do it with 100.101 it stays the same (what is good). I use this code: `/** * @var ?string...

Need Help, how pass parameters to relation manager?

here my table action ->actions([ Tables\Actions\ViewAction::make()->url(fn($record) => RkupResource::getUrl('view', ['record' => $record->id, 'periode' => Carbon::parse(request()->get('tableFilters')['periode']['date'] ?? now())->endOfMonth()->format('Y-m-d')])), Tables\Actions\EditAction::make()->url(fn($record) => RkupResource::getUrl('edit', ['record' => $record->id, 'periode' => Carbon::parse(request()->get('tableFilters')['periode']['date'] ?? now())->endOfMonth()->format('Y-m-d')])), ])...
Solution:
Solve with this. on resource public static function getRelations(): array { return [...

Wizard dont show fullscreen on desktop

anyone know why this is happening? Why my wizard doesnt full on desktop
No description

No application encryption key has been specified

As the title suggests. Has anyone have this problem? I am wondering why this is occured. I have tried: php artisan clear php artisan optimize:clear...

How to Sum relationship column with cast field

Hi Im Using PGSQL And I got Error On Image And this is my code ...
No description

Icon beside search

can i add icon cart here?
No description

Change Bulk Action Visibility Based on Selected Row's field value

Is it possible to change Bulk Action Visiblity based on selected row's attributes? For example, i want to show "Desfazer" Bulk Action only if selected row's Fl_finalizado = true. i tried the following code, but it keeps me showing the error App\Filament\Resources\SorteioResource::App\Filament\Resources{closure}(): Argument #1 ($records) must be of type Illuminate\Support\Collection, null given. ``` ->visible(function (Collection $records) { // Verificando se todas as linhas selecionadas têm fl_finalizado = true...

How to set tenant when changing tenant ( Team ) from filamentphp tenant menu?

Hello, Can can I set filament current tenant when a user changes the Team using filament tenant menu? Regards...

Dependent Select -> Form Fill Issue

I have a form which contains 2 dependent select fields. On create the fields work perfectly, however on edit I can not for the life of me get these fields to populate with the saved data. In my mount method I have added logging and in the ->afterStateHyrated I have added logging and everything shows that the fields are being populated however when the modal opens the fields are not selected... here is my code: my form fields in question: Division>Location>Resource...

Filament User Registration Error

Hello there, I'm trying to enable registration for my filament up but when I test it (local env), I get this error:
Unable to find component: [filament.pages.auth.register]
Unable to find component: [filament.pages.auth.register]
...

Set a link to ChartWidget bars

I was wondering if there is a way to set a link to the bars in the ChartWidget. One could drill down into the shown data with this. I checked the docs of filament and Charts.js but could not find a easy way....

File upload Required doesn't work

Grid::make(2) ->schema(function (?Model $record, Get $get) { return DocumentCompleteness::where('type_of_leave_id', $get('type_of_leave_id')) ->get() ->map(function ($item) use ($record) {...

Reset option in toggleable() dropdown for table column to default

How to provide user with an option to reset to default toggleable() table columns. I wanted to include such reset in toggleable dropdown action.

Custom property with Medialibrary

I'm trying to work out how to store a custom property with uploaded images to say whether it is landscape, portrait, or square. I was planning on dividing the width by the height and if the result < 0.75 = landscape, result > 1.25 = portrait, otherwise square. But how can I make those calculation on the uploaded image before it is stored in the database?

publish tags

Hi. I'm looking a way to publish filament language files for only one language. I could not find where in the vendor/filament folder are the tags defined (--tag=filament-translations). The only piece(s) of code where something is published seems to be ```php public function packageBooted(): void...

Help column in table

I don't want to submit changes to the TextInputColmn in the table. I want to add a confirmation button next to the input and click it to make changes.

Help on creating a component

Hey guys, I'm new to filament and I'm trying to make a "Bingo" system. I'd like a functionality where a user can add available numbers. Ball is an entity that may be disabled. To this point, alright, just have a resource for Number, and that's basically it. But here's where things get complicated for me: ...

How to sell source Filament on Market?

Can I build a project using Filament and sell it on marketplaces like codecanyon.net? Has anyone sold on this marketplace?

Best practice for multiple dynamic properties

Looking for advice for the following scenario: ``` Select::make('product_id') ->options(Product::all()->pluck('name', 'id')),...