Filament

F

Filament

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

Join

path filament plugin in navigation menu

what are the paths of filament plugins? i want to list them in the adminserviceprovider,
Solution:
``` ->navigation(function (NavigationBuilder $builder): NavigationBuilder { return $builder->groups([ NavigationGroup::make('Content') ->items([ ...ArticleResource::getNavigationItems(),...

Navigation sidebar is empty even though my resources have a navigation group

Hello, I am experiencing a weird behavior on my admin panel's sidebar where the navigation groups appear empty even if in my resources' files I have correctly set the navigation icon and navigation group. The error that comes up is: ```...
No description

Customize RawJs mask input field

Hi all . I have an question . I need to set my TextInput with some format . Im still new in filament . So i dont know how to set in coding much especially about js. Below is my code : TextInput::make(longtitute) ->required()...

i want add modal in my widgets

every widgets has a modal
No description

tiptapeditor errors

i have installed tiptapeditor but it is causing problems Problem 1 - Root composer.json requires spatie/shiki-php ^1.3.0, found spatie/shiki-php[1.3.0] but the package is fixed to 2.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. ...

Table reload in custom livewire tab by updating in another tab table record.

I have a resource page with Tab implementation. First tab for draft items loaded through livewire page. The second tab is with published items. I wants to refresh the second table when ever I am publishing a record in First tab. Below is the main page ```public function getTabs(): array {return [ 'All' => Tab::make('All')->schema([ Livewire::make(ActiveListingTable::class)->key('active-listing-table')...

Multi-tenancy title

Hello, I am using Multi-Tenancy, it's going great so far. I need to differentiate browser tabs by showing the current tenant in the title, for instance:...
Solution:
maybe you could use brandName() on the panel provider to set tenant name - app name

Server Crashes After Resource Update/Edit

Whenever I update or edit a resource, the server crashes and stops responding until I manually restart it. Has anyone experienced this or have suggestions for a fix? in the browser console i have this error: http://127.0.0.1:8000/livewire/update net::ERR_EMPTY_RESPONSE...

Before method in repeater delete action

How can I have like a before method in repeater delete action?

Custom theme (minimal theme) color issue

Hi, I purchased the official minimal theme for Filament. The installation works perfectly, but I can't seem to get my custom colors to work anymore. I'm still using the ->colors() in my FilamentServiceProvider. Did I miss something?
Solution:
Thanks for mentioning me, @Dennis Koch. @Liam has already contacted me via email regarding this. It comes down to making sure your custom colors are registered after the theme is registered/initialized....

Sort table by random order

In my songs table, i want to add a filter to let the user choose to order the records randomly:
Tables\Filters\Filter::make('in_random_order')->query(fn (Builder $query): Builder => $query->inRandomOrder())
Tables\Filters\Filter::make('in_random_order')->query(fn (Builder $query): Builder => $query->inRandomOrder())
...
Solution:
Okay, I got curious so I added a 2000 song table to a fresh filament installation and did some experimenting. got it to work by using baseQuery instead of query (https://filamentphp.com/docs/3.x/tables/filters/getting-started#modifying-the-base-query) : ```php ->filters([ Filter::make('Shuffle') ->toggle() ...

Panel ->assets() result in 404. What am I missing?

I'm new to Filament and have been following the guide. I got to this point and followed the directions to create a custom css sheet in resources/css/filament-organize.css: https://filamentphp.com/docs/3.x/panels/configuration#registering-assets-for-a-panel In my network tab, I get this error:...
Solution:
What are you really trying to do? If you want to customize your look and feel you can create a custom-theme, it’s the recommended way to do so

how can i encrypt update payload

Hello, I want to encrypt some fields of the livewire update payload like data.payment_method.card.card_number Do you know how I could do it?...
No description

Link to edit hasOne record from parent model

I have 2 models, Patient and HealthRecord. Patient has on HealthRecord (1-to-1 relation). When a Patient record is created, an empty HealthRecord also created in the background. Now can I open that HealthRecord to edit the data ? I need a link from Patient Table to edit the Patient's HealthReocrd

Error on upload multiple files on livewire page component inside infolist.

Error on upload multiple files on livewire page component inside infolist.

flatpickr monthSelect disabledDates

I have a flatpickr that is a month selector. I want to disable months in the dropdown, but using the disabledDates method doesn't work. How would I disable months in the dropdown?

How can I change the width of individual statsoverview stats?

Hey all, im trying to have a stats overview widget which consists of 2 stats to take up the full width, the problem is that I can't find out how. ``` protected function getStats(): array {...

How to create mutiple things with one resource?

I trid to overwrite create process wthhandleRecordCreation() ```php function handleRecordCreation(array $data): Model...
No description

How to decrease this gap in collapsed sidebar

why this is so big, how to make it smaller?
No description

Save column visibility in user preferences

Column visibility works great, but is lost between sessions. It would be awesome if there were some kind of callback or event that is triggered when a column's visibility changes. That way I could save the users table preferences and reload the next time they login. Is this possible?...
Solution:
If anyone else searches for this, apparently this is doable by creating a custom trait. Adding methods to the trait to override Filaments "getDefaultTableColumnToggleState()" to get the toggled columns state and "updatedToggledTableColumns()" to update the state. Added some code to both of those to read/write from a custom table...