Filament

F

Filament

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

Join

Add TextArea as a blade component

I'm currently looking at this documentation: https://filamentphp.com/docs/3.x/support/blade-components/input Is there a way to add textarea in blade?...

How to change the Resource Title?

I used this for the navigation label but what about the actual title? ```php public static function getNavigationLabel(): string {...
Solution:
Figured it out, its in the ListRecord page, getTitle()
No description

url() validation gives me valid url

Why that link gives me invalid URL? ```php Forms\Components\TextInput::make('link') ->url() ->prefixIcon('heroicon-m-globe-alt'),...
No description

ViewAction slideOver render hook

Is it possible to inject a view using render hooks to the ViewAction on a table? I need to globally (hence render hook) inject a view to all slide overs from a plugin

Set custom page navigation as active without custom navigation

As the title suggest, I need to set navigation item to active without using isActiveWhen from registering custom navigation https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items

import modal description

Hello all, Please I want to make import action like the image attachment, but wen I add modal description then (Download CSV file) disappear, Is there any way to keep it?...
No description

make realtion manager command, unable to find component issue

after i run the
php artisan make:filament-relation-manager AppointmentResource Client first_name
php artisan make:filament-relation-manager AppointmentResource Client first_name
then i add the class to the getRelations reload the page and got this error
Unable to find component: [app.filament.resources.appointment-resource.relation-managers.client-relation-manager]
Unable to find component: [app.filament.resources.appointment-resource.relation-managers.client-relation-manager]
...
Solution:
ok sorry, just needed the
php artisan filament:clear-cached-components
php artisan filament:clear-cached-components
...

Insert Action Button on Custom Page

Hi everyone, is it possible to add action button on the custom page? I only able to put it on the table Thanks...
No description

Allow view without view_any

So I have this user with view but without view_any in their role. I want them to be able access ``` /admin/books/1...

Issue with FileUpload Component Not Loading in Laravel Filament

Hello everyone, I’m working on a Laravel project using Filament and facing an issue with the FileUpload component. I’m trying to implement a file upload feature that allows users to upload images, but the component is not loading as expected. What I’m Trying to Do:...

Translate Resource and Fields

I am using the Language Switch plugin, and it translates everything automatically except the User defined stuff such as the Resources and the Fields inside. Now I know I have to make a custom file for it, but how exactly do I do it?

Visual Builder Email Template Error

Hi, I'm using Email Template editor plugin from Visual Builder https://github.com/visualbuilder/email-templates and using postgre database, the plugin is working nicely on local server. And then I got this error on production server:
"SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer LINE 1: ...om "vb_email_templates_themes" where "is_default" = 1 and "v... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. (Connection: pgsql, SQL: select * from "vb_email_templates_themes" where "is_default" = 1 and "vb_email_templates_themes"."deleted_at" is null limit 1)"
"SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer LINE 1: ...om "vb_email_templates_themes" where "is_default" = 1 and "v... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. (Connection: pgsql, SQL: select * from "vb_email_templates_themes" where "is_default" = 1 and "vb_email_templates_themes"."deleted_at" is null limit 1)"
...

Get values from filters

Hello everyone. I have a table with some filters in it and I have a Header Action to generate the PDF. I would like to know how I get the values ​​of the filters that I used in the search before clicking on the PDF Action? Thanks

Help with TinyMCE, duplicate the textarea

Hey guys, i need help with a configuration for use an html editor in a text area in a form please, i use a cdn for tinycme editor in the textarea but, for any reason when i use the select and add the id=mensaje, here
selector: 'textarea#mensaje',
selector: 'textarea#mensaje',
the textarea in the form is duplicated... can understand why happen this! any idea about my problem friends? this a Laravel project, not use filament for the form, it's only laravel and livewire...

Preset attributes according to selected tab/previously created record

I have an Event resource. I display it with tabs filtered for a type, like one tab for type "A", one for type "B" etc. When you click on Create on the top right it should prefill the new record with the type that was previously selected as tab. I achieved this by overwriting this method: ```php...

Stop uploading file to my server when using bunny video streaming

I am using Bunny to store videos (it's something like Vimeo). When I upload the video, it uploads first to my machine by livewire, then I handle it to be uploaded to bunny after submitting I don't want to upload files to my machine before uploading to bunny, as they can be too large ...

ExportBulkAction

Hello. I have a modal named Cdr, it has 90 records, I had a Table Widget that shows all those records, I added the ExportBulkAction in order to select or filter records and export them to Excel: ```php ->bulkActions([...
Solution:
Filament should use uniqueid then. Not sure what's the issue. But I'd guess it's not the Exporter but the BulkAction that cannot identify the records correctly
No description

Custom FileUpload action

Hello everyone, I have a RelationManager form which has a FileUpload input, I want to get file information same as in liverwire, so how can I do that ? `public function form(Form $form): Form { return $form...

Is possible have an input can be select and text input in same time ?

Is possible have an input can be select and text input in same time like if the data exist shows in select input, if not can be add in the text input...