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 add button to Datetimepicker?

Hello, I have a datetimepicker added to one of my forms and I am looking to add a button to click when I am done selecting date and time. The default datetimepicker lets us select the date and time and then we have to click away to be able to update the input, also there is an option to close it automatically after date and time selection, but what I need is to add a button to update the input and close the picker. Please let me know is it possible to do so? ...
No description

Section disabled() / notClicable() ? ^^

From what i saw, wizard, tab and even section, if we use disabled() it will disable the elements inside of it. i used collapsed() and disabled(). i was expecting to prevent the user to click and open again the section. Is this even possible? there is any other function to do this?...

SQL Error when saving, no such column

I have 3 resources: FoodMenu, FoodMenuSections, FoodMenuItems. A food menu has many sections and a section has many items. I have the section relation manager and the item relation manager set up. The errors When I save a food menu section with the menu set I get the following error...

Error with spatie media file upload

Hello, I am getting an error with fileupload in my production server. But unfortunately, I am not getting the error in local env. Whenever I try to upload an image file. It says file type not supported on production. On local it works without any issue. There is also a console error which appears from file upload js on page load. ...
Solution:
My bad, I should have updated this thread. The error was due to browser cache. Remember guys, always clear your browser cache after updating filament.
No description

Filamentphp v1

My old project used php7.4 so I used v1. But when I use the page, I can't build the form. Can anyone help me? Tks all...

Formatting Tooltip to return rendered HTML instead of plain text

Hi, I am having an issue with rendering HTML on table column tooltip using accessor. Right now on table tooltip i have this ``` TextColumn::make('current_currency_price_without_discount_formatted')...

Separate panels

Hi how can I do separate panels with only some of users can access first panel and some others can access the second panel. Is it possible? I mean the best method to do it because I saw many methods but I want the best or the right way that Filament use.
Solution:
Yes the function canAccessPanel returns boolean, so as long as you define your own logic and return bool, you can.

translate validation.required?

hello, how do I translate validation.required? need to translate in importer, then not have form field and cannot use ->validationMessages()...
Solution:
You just need to add a language file and add it. say: resource/lang/en.json ...
No description

Dusk, Cypress or Playwright for filament browser tests?

I'm trying to decide which browser testing tool to use. Dusk only supports chrome, but I've seen posts that indicate dusk may not recognise all form elements in Filament, Any suggestions or tips gratefully received...

Self-Registering Filament Plugins

Let's imagine I am developing a package cms (based on Filament). Now I want to offer an additional package called blog. In my laravel project now I add the two dependencies cms and blog. The cms has the FilamentServiceProvider to register the panel. The blog package contains a Filament plugin. ...

How to check if the created request is made through Filament?

Hello, I am trying to create status of booking in my project using the Observer to be "confirmed" if the booking is created using the Filament Panel and "unconfirmed" if the booking is created using the API or any request other than Filament Panel. Please let me know how do I detect if the create request is made through Filament Panel or not? Thank you so much...
Solution:
Just a shot in the dark (not tested). But could you use Filament::isServing() to determine wheter or not it was from Filament? 🤔

How to make create/edit a modal instead of a page?

Can't seem to find it in the docs.
Solution:
just comment out the pages in the getPages function of the resource https://filamentphp.com/docs/3.x/panels/resources/getting-started#deleting-resource-pages...

Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?

I have a form as defined here: ```php ->form([ Forms\Components\TextInput::make('adjustment') ->live()...
Solution:
Actually what you want is to use AlpineJS to do it for you.. using extraAttributes I suspect? Roughly like: ```php Forms\Components\TextInput::make('adjustment') ->helperText('Increase or decrease available quantity')...
No description

Customize Login Page width Screen

I dont know but for some reason my authentications screens have been extended to cover the entire width of the page as showing attached. How can I default to the same actual width?
No description

When would you ever not want `isImportant` on the `configureUsing` method?

Related: https://discord.com/channels/883083792112300104/1344421288919302215 I had to fix some configuration that I was doing in a service provider and needed to set the isImportant flag to true. Can anyone tell me why I wouldn't want to always set this to true? I'm not understanding why this is even a thing? Thanks....

Blade Component

Anyone have full detail document of blade component

Need Clarification in close modal

I am opening the modal from navigation menu like this Resources\DemoResource::getUrl(parameters: [ 'action' => Filament\Actions\CreateAction::getDefaultName() ]))...

User registration with field for team/tenant name

Most approaches I found use the 'event(new Registered($user));' to trigger a listenerer that create a personal team after and generate the team's name from the user's name. This is a clean approach. I want the user to specify the team's name during registration and ask some additional questions (business category) during signup. Extending the registration form with these field has been done. What is the cleanest approach to store the team related data given the 'Register.php' functionality?...

It is not possible to use a variable inside the make() of a FileUpload field ?

I try to make a dynamic field for a file but I get an error when I don't put a string directly inside the make() error : No synthesizer found for key: "" field : ...

Help Us Improve Filament’s Docs & Education in v4

Hey everyone! As we gear up for Filament v4, one of our big priorities is rewriting the documentation to make it clearer, more complete, and easier to navigate. At the same time, we’re planning a wider education strategy, probably including official video courses. But we need your help! If you've learned Filament - whether recently or way back in v1 - what were the biggest pain points? 🔸 What parts of the docs confused you or felt incomplete?...