Filament

F

Filament

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

Join

Widget Owner

If I've got a table widget in a view page (ViewRecord)...how am I getting the model of the record I am viewing ? tried getOwnerRecord()...

How to turn-off client-side validation

Sorry if there is out there in documentation. I have tried to search but haven't found it. Is it possible to turn off the client-side field validation and just relay on server side? The client-side behavior seems to skip ToggleButtons, doesn't highlight the field red, etc. Would prefer just to use server-side as it's fast, it highlights all fields that break validation rules, etc. Any help appreciated!

Can you collapse widgets ?

Are widgets collapsible ?
Solution:
Section supports collapse

Websocket - refresh table

I've been trying to find a way to refresh a table, or a specific row in a table using websockets. Say there's an event in a different module that would affect the data in the table, i'd like to re-fetch the data or only the row that was affected. Has anyone encounter something like this?

Custom Column Clickable - Prevent

Hi is there a way to prevent oppening edit action when i click on FeatureColumn, but still keep functionality to open edit action when i click on rest?
No description

bulk actions with large dataset

when doing bulk action on 100k records, the app is freezed the action is attach many to many relation to selected records any idea how to solve it ? Thx in advance...

Change language Only in Admin panel

Hello, How to change the language only while we are in the /admin? I need my main app to be in EN, so in my .env APP_LOCALE=en, but is there something to add to change the lang only for admin?...

Refresh Form Data in Modal

Hello - I have a form in a modal. I fill the form data initially using ->fillForm(). I have an action within in the form where the user can create a new model. Is there a way to call ->fillForm() again after the user submits the action form? I want to fill the form with fresh data.

CheckboxList ->in() validation not working

Hey, Using what's on the docs I have the following code with different values: ```php CheckboxList::make('technologies')...

Expandable Rows

Hi i want to ask, is there any chance in filament, we can do expandable rows. it's not like collapsable . means like, in table filament, have button to expand row, when user click expand, the details in expand row also another table. i dont find any solution here.

How to test the form of a relation manager?

I want to verifiy if one select field of my relation manager has the correct options, however I don't know how I can make this assertion. I've tried: ``` livewire(RelationManager::class, ['ownerRecord' => $record, 'pageClass' => '']) ->assertFormFieldExists(...

Filter form loading time

Dear all, in resource table i have filter as a custom form, when opening form filter it's have a few seconds to load options, when using standard Select filter the response to load options is minimal ..., anybody know woh to fix or increase performance of form filter ? (I need to use form filter with reason of dependacy injection of next filter form fields) See code bellow: ```public static function getTableFilters():array { return [ //this working fine Tables\Filters\SelectFilter::make('customer_id')...

Repeater hide the input on second item

How to hide the Repeater Radio button the second item of repeater? ``` Forms\Components\Repeater::make('eventDates') ->label('Event dates')...

Reuse Filament Login and Registration Form outside the panel

Hello Guys, Could you give me tips how can I replace the Breeze login and registration form with the filament ones? Can I point out the filament registration page in my routes/auth J ``` ......

Override plugin's Javascript files without publishing?

Hello everyone 👋🏻 I'm using some plugins, and I would like to make some modifications on some JS files. I can publish these using filament:assets. The thing is, in the future, if I have to run that again, my modifications will be overwritten....
Solution:
So, the answer is quite simple: - Put your updated file on your resources folder (/resources/js/custom/customfile.js) - Register the asset with the package name in it in your AppServiceProvider ...

multiple file upload

Hello everyone, I broke my brain over the solution of the problem: I have an unchangeable form that is shown during moderation, I need to add a display of several unchangeable pictures there, which are stored in the directory, where its name is the id of the picture in the database These images are stored in the images table as follows:...

issue when having a form inside a livewire component

I have a livewire component with a filament form. When submit, it fails because of the text inputs. If I remove the text inputs it works as expected. Why? I have another components with forms and text inputs and they working well... Help please! ANy idea?...
No description

modify apexchart burger menu

hi everyone, i wish to know how to customize the right menu titles of a bar apexchart? thanks
Solution:
'chart' => [ 'type' => 'bar', 'height' => 287, 'background' => '#ffffff', 'stacked' => true,...
No description

Spatie Image Mass Assignment Issue

I am using spatie media plugin, and implementing interface and trait in model. But i am getting this error, any resaon for it?
No description

How can I save data in custom modal?

``` Action::make('customModal') ->label('Custom Modal') ->action(fn ($record, $set) => $set('record', $record)) // Custom action ->modalHeading('Custom Modal Başlığı') ->modalContent(function ($record) {...