Filament

F

Filament

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

Join

Textarea value from api

Hello devs, how can I make it happen I get the textarea populated with value from an api resource? ``` Textarea::make('public-key') ->live() ->default(function (Get $get) {...

I disabled `inject_assets` in livewire config, how to load it manually for filament

I disabled inject_assets in livewire config, how to load it manually for filament
Solution:
I think you can inject it via panel provider instead of rendering hooks: ```php return $panel ->bootUsing(function () {...

ERROR 404 NOT FOUND en SELECT

Hello guys. I have the following problem with a SELECT in a form from which, in addition to selecting an option, I can CREATE and EDIT. The problem is that if I click the X to delete the selected option, it gives me an ERROR 404 NOT FOUND and it no longer lets me select another option. The only way to continue is by updating the form....
No description

NavigationGroup translate and icons

I'm struggling with the translation of NavigationGroup. Basically what i'm going to do is: ``` ->navigationGroups([ NavigationGroup::make(__('contests.races'))...

How to put the native save button inside of the form?

I want to put the save button instead of at the end of the page, i want put it somewhere between my form, how to do that? Thanks
No description

File upload in Tenancy For Laravel

Hello everyone, I'm using Laravel Multi-Tenancy in my project with TenancyForLaravel.com How to upload file with it...

Responsive Design Breakpoint Issue in Custom Component

I'm struggling with a responsive design issue for a custom component. The breakpoint prefix for responsiveness doesn't seem to work properly. Also, while the h-96 class works fine, switching to h-80 doesn't have any effect. Below is the component code: ```php @props(['request']) ...
Solution:
You need a custom theme if you use classes that aren’t part of filament’s stylesheet. https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme

Make entire builder preview click-and-draggable

Hi all Is there a way to make the entire builder preview area draggable? I.e. clicking-and-dragging anywhere on the preview area should do the same thing as the up/down arrow in the toolbar. The up/down arrow icon is a very small target and isn't ideal for users with vision problems....
No description

Modal submit button hidden behind Select list options

Hello Filamenters I have a UI problem I am struggling to solve. I've created table Action for a resource which requires using a multiple Select field. Non-technical stakeholders are reporting that they are unable to submit the form after choosing users because there is no submit button....

Need to group many to many relationship based on their category in the form. Input: CheckboxList.

Each user has a Profile resource, which has many-to-many relationship with Skill class, which has name, category fields. In Edit Profile form I want to categorize Skills based on their categories. At the moment, all of skills are listed to together. Categorization would significantly increase readability, as platform aims to provide service to all types of professionals in the sector....
No description

Custom Pages why can't I add multiple components to one page.

Why isn't there a function to draw a page. instead of only building out each component like form, infolist, table builder. For example have a function Page(Page $page) return $page->section->("form")->schema([$this->getForm])->section->("Info")->schema([$this->getInfoList(),$this->getTable])...

Follow/Unfollow record is not working

I want to toggle follow/unfollow actions for each $record (table row): ```Action::make('follow') ->label('Volgen') ->visible(fn(Series $record) => !auth()->user()->series->contains($record))...
Solution:
Thank you Leandro. I indeed start using the Toggle column: ```ToggleColumn::make('users.id') ->label('Volgen') ->onIcon('gmdi-star')...

Forge Load balancer issues and forceScheme https

In production environment I use a load balancer through Forge so there is the https LB and then 2 http servers. I have set the correct https:// url for both APP_URL and ASSET_URL. I unfrotunately am hitting 2 different errors with Filament depending if I set URL::forceScheme('https') or not. If I don't force https, then certain things like the Filament Logout link don't work, because for some reason it's pointing to http:// and results in an error rather than a redirect. But things like the Reset Password function work as expected (though the email sends with http reset link which redirects to https). If I force https, then the Filament Logout link works. But the Reset Password link results in 403 invalid signature error. I already tried setting trusted proxies middleware '*' (at+headers) but that didn't make a difference....

Best approach / pointers for creating a simple image paint functionality in a filament app ?

Basically am building a small app that I think filament would a great (for building the entire app not just admin) except i need some custom image painting functionality (user needs to be able to draw some on to an existing image and save a new one, maybe some croping. Some approaches I am considering - regular intertia.js / react for the app - filament just for admin (prefer to avoid this due to extra work)) - build a custom blade page within filament admin panel and use react there for the paint app (leaning towards this approach)...

Spatie Permission on filament Multi-tenancy

I am confused how to implment spatie permission for below multi-tenancy design. I have enabled team feature in spatie .I have below three filament panels:- 1. Admin Panel (only accessed by users who will be responsible for managing the app, sales & marketing app, or handling customer) 2. User Panel (access only by individual customer user free or paid) 3. Company Panel or can say Tenancy Panel (access only by paid customer who took subscription for registering company. ) ...

Notification for unsaved data

Guys, I currently have an action in my edit without verification, I can modify the form without clicking save and clicking on the action and it will work, but it will not save the changes. It is possible, for example, to add a ->requiresConfirmation() that when clicking on the action and not having saved the data, a message appears "you have unsaved data, do you want to continue anyway?" but the message only appears if the person clicked on the action, modified the form data and did not save it. Example action: ```...

Fix Height Toggle Columns

Hello everyone. How can I fix the height of the list of columns that are hidden? Thank you.
Solution:
$table->columnToggleFormMaxHeight(xx) or columnToggleFormColumns()
No description

Unsure how to handle data from multiple select within a Repeater to save to pivot table.

I'm brand new to Filament and trying to use v3.x in a Laravel 11 app. I have an issue when using a multiselect in a Repeater. THE SETUP I've created an example repo (https://github.com/39digits/filament-repeater-multi) as a slimmed down version of the issue and created contrived models to try represent the issue in as simple a way as possible....

Filament routing

I am builing a multi tenant app using "tenancy for laravel" and I want to have an admin panel (using filament) on my central domain to manage all tentants information. The filament route would be "central.domain/admin" If a tenant tries to access "tenant.central.domain/admin", a 404 should be shown. ...

Strange error with RAWJS

Hello everyone. Does anyone know how I can fix this error? It's happening when I use a TextInput->mask(RawJs::make('$money($input, ",", "", 3)')) in the form. Thanks
Solution:
Resolvido trocando o componente de InputText pelo Money do Filament-ptbr-forms-fields.
No description