Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

Redirect to list page with action to open edit SlideOver

Hi I am doing custom redirection to other resource list page, but when I do redirect to other resource list page I have to open edit slideover with ceratin record id in it? Is it possible?...
Solution:
yes: tableAction=edit&tableActionRecord=xx take a look at this example https://demo.filamentphp.com/blog/authors?tableAction=edit&tableActionRecord=1...

livewire modal closes after update

Is there a way to prevent a modal from automatically closing when the livewire content inside updates? I have a calendar but when I change month, it closes the modal...
Solution:
So I decided to just boycott the modal approach and added the widget directly to my View Page, make things easier

Spatie translatable

I'm using https://github.com/filamentphp/spatie-laravel-translatable-plugin to translate some fields in my models - is there a suggested way to actually render those on the frontend? Should this be done by the plugin, or do I just process data before passing to props/just render in React depending on the locale? I see a bunch of different "translatable" plugins mentioned, so I'm not sure if I'm using the "wrong" one? If there's such thing as wrong even 😄...
Solution:
as Dennis mentioned the plugin handle the filament part only. the frontend is out of control haha your best way to create accessors to get the translated attributes depend on your app, $this-title will return array, so you also can create a method and pass the $lang btw not sure if you're on v4 or v3, since this is for v4...

RelationManager table working, but actions are not

I have a resource with a RelationManager at the bottom. This is all working fine, the table shows what I'd expect, etc... Unfortunately, clicking the edit action doesn't actually take you to the form for the related record. An XHR request is fired and is successful (No errors), but nothing happens on the page. I've been debugging and messing with this for a couple of hours and I'm just not sure what the problem could be at this point. I feel like I have exhausted everything that I can think of. I am not new to PHP nor Laravel at all. New-ish (One year of use) to Filament. This isn't the first time I've used a RelationManager, but it is the first time I haven't been able to make it work the way I want it to. I have upgraded filament, cleared caches, deleted the resources/views/vendor directory, done everything I can think of to make it work, and still when I click Edit, nothing happens....

vertical align of action button and row select

I have all my table cell aligned to the top with verticalAlignment(VerticalAlignment::Start) ```php ViewColumn::make('address')->label('Address') ->view('filament.tables.columns.address-complete') ->verticalAlignment(VerticalAlignment::Start),...
Solution:
create a theme and add this css ```css td.fi-ta-actions-cell, td.fi-ta-selection-cell {...
No description

Public livewire page in custom plugin

Hi, i'm making a custom plugin, this plugin is registered in the AdminPanel I need to have a full livewire page outside the panels, accessible to everyone the page in the end show a filament form, at the moment i have a livewire error Unable to find component: [register-tenant] route...
Solution:
i've found the solution this morning, wrong declaration this is right use Base33\BossOnboarding\Http\Livewire\RegisterTenant; but this use Base33\BossOnboarding\RegisterTenant; doesn't throw errors...

BUG: SPA mode causes presence channels subscription to remain active when navigating away

I'm documenting a potential bug here while I haven't yet created a reproducible repository.
When using a panel in SPA mode, a Livewire page that subscribes to a channel via getListeners() doesn't unsubscribe upon navigation. Returning to the page creates a duplicate subscription, causing listeners to fire multiple times per event and preventing the leave event from being triggered....

File upload ERR_CONNECTION_RESET when using Cloudflare R2 and Spatie Media Library plugin

When uploading larger files (videos), it happens often that the upload of the file is interrupted. It just gets stuck at a random percentage. For example I'm uploading a 50MB video, sometimes it stops at 13%, sometimes at 80%, it's random, but it never completes. Smaller files and videos seem to work fine....
No description

How to make a button inside TextColumn make a button with ReplicateAction functionality

Hi guys, I wanted to know if there is any way to add a button inside a TextColumn. That is, I currently have an item name there and I want to put a button there that will duplicate the item in the database when clicked. Now I use an icon as a button, but duplication occurs when clicking on any part of this TextColumn, because the duplication logic is in ->action(ReplicateAction::make()...)
No description

how to hide/remove the create header action?

I tried it with $table->headerActions([]) and I also removed the create entry inside getPages() method in the resource. But it has no effect....

v4 Allow Create in ModalTableSelect

Is this something that doesn't exist or am I overlooking a setting to allow creating a new item when using ModalTableSelect ? https://filamentphp.com/docs/4.x/forms/select#selecting-options-from-a-table-in-a-modal

How To create custom layout like header footer body etc

How To create custom layout like header footer body etc but I also want within filament and one more thing,, There is two panel in my app one for admin panel and 2nd for custom layout for website... can anyone guide me how I can achive this for custom layout ?...

Multi-select Filter Indicator: How to remove a single selection (not all) when clicking "×"?

🧩 What I am trying to do: I'm using a MultiSelect inside a Filter::make() form to allow filtering records by multiple services. Each selected service shows as a separate indicator, and I want to allow users to remove only one of those selected services by clicking "×" on the corresponding indicator, without clearing the whole filter. 🔧 What I did so far:...

How to validate a modal form before extraModalFooterActions runs?

I have a modal with a form and a custom footer button. I need to validate the form when this custom button is clicked, before its own logic runs. However, the action's ->before() hook is never triggered, so I can't run validation. Here is a simplified example of my code: ```php...

Custom & display validation message

How can I customize the validation for a required field and display the error message below the input field? I've tried using rule and rules, but it's not working for me. Thanks for any help!...
Solution:
Oh, it prioritizes frontend validation. What I need to do is remove all ->required() and replace them with ->rules('required'). Thanks for the help!
No description

how to get result function custom field?

I make custom field how to fetch data i want make table with pagination custom. ```php <?php ...

no default css after creating custom theme

I'am creating a custom page for a ticket system. In blade i wrote something like this: ```php <div class="message space-y-4"> @foreach($this->record->messages as $message)...
Solution:
Not sure whether it makes a difference, but in my projects (and I think in default Laravel) Tailwind runs via PostCSS. Not directly via Vite.
No description

Is it possible to Mod a Repeater?

Is is possible to have a modified repeater such as adding a radio button so I could perform what is similar to the image described?
No description

How to allow form submission on CustomPages?

I have this custom page the displays some prefilled values but I also wanted to create a data in this custom page ```php class CreateGroupSettings extends Page {...
No description

Repeater Table Mobile Breakpoint options

I'm relatively new to Filament. I'm working on a project and decided to try out v4 to use the table repeaters. Are there any options or plans of any options for either responsive layout fields or customizing the breakpoint on the table?