Filament

F

Filament

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

Join

Access Resource with a PIN

Any suggestions on how to proceed when a Resource is accessed, requesting a Modal or Page requesting a PIN (from users) as a way to access the resource?

larazeus Inline Chart with custom data?

Hi all! Unfortunately, with “lara-zeus/inline-chart,” I have only found the option to use $this->record as data for the chart. However, I would need it in a table where I can use/pass custom data....

Filament auth guard logout

I'm using two different guards for users (web) and admins (admin). For users, I can destroy the web guard session when logout. Since I use filament for admin panel, its custom logout destroys both web and admin guard sessions. How do I make it so that when admin logout it only destroy the admin guard.

RichEditor in Filament v4 converting content to json by default instead of string

I have a weird situation where the same default Filament V4 RichEditors are behaving differently on two ends. On my X page it's converting content correctly to string and on my Y page it's converting to array, but I'm not calling ->json() on it. On my X page it's defined as ...
No description

Filter and search in one row

how do i make the search and column display in the same row as the filter icon (all of them in one row)
No description

Filament v4 upgrade command fails: Phpactor class:move exceeded timeout of 60 seconds

Hello, I’m trying to upgrade my Filament project from v3 to v4 using the provided Artisan command: ```bash...

lỗi tạo form ở bản v4

TypeError App\Filament\Clusters\Helpdesk\Pages\TicketManager::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Schemas\Schema given, called in E:\dntu_source\admin\vendor\filament\forms\src\Concerns\InteractsWithForms.php on line 70 LARAVEL 12.30.1...
Solution:
It's about namespaces Schema vs Form in v3/v4 of Filament. Attaching the answer from ChatGPT, I literally copy-pasted your message....

Set Default when Creating Record from Relation

So I have a relation manager on my CyclesResource the Relation basically shows a list of PostingResources when the user hits "New Posting" button I would like to pass in the current cycle id and make it as Read Only so that the user does not have to select this field as it seems counter intutive to have to do so since you created the posting from the cycle? Is there a way to do this? I've tried both:...
No description

[feature req] Make AnswerOverflow forum easier to browse and moderate

Hey team, I’m currently building Paladin. I noticed the Filament forum is synced to the web with AnswerOverflow. Paladin makes forums cleaner, easier to browse, and simpler to moderate directly from the web. It’s completely free to use and can either complement your existing setup or run on its own. If you want, you can try it yourself in a few minutes, or I can spin up a demo and show you how it works, no pressure either way 😀...

Exporter failing with undefined index

So I have an export action with some columns working fine: ExportColumn::make('from.email')->label('From Email'), ExportColumn::make('to.first_name')->label('To First Name'), ...

How to modify the Modal Form position

Anybody know how I can position the Form Modal the the left side with max width ? First screenshot: current state Second screenshot: How I would like to position the Form Modal ...
No description

RichEditor content is ignored

I have a simple schema: ```php public static function configure(Schema $schema): Schema { return $schema...
Solution:
ok, wow. I solved it. The body column has to be nullable even the field is required - This is mentioned in the filament spatie media library documention but can easily be overlooked here: https://filamentphp.com/plugins/filament-spatie-media-library#using-media-library-for-rich-editor-file-attachments
Using SpatieMediaLibraryFileAttachmentProvider requires that the rich content attribute (content in this example) must be defined as nullable in database....

Custom Table Filter

Hi All, Could you please guide me on how to add a custom filter at the highlighted section in the attached image? Thank you!...
Solution:
Thanks — it does look nice. Although I found this parameter for showing filters in different layouts, for now it looks fine as per my requirement: layout: FiltersLayout::AboveContent...
No description

Confused with given Filament demo structure

I am working on a project in intership and I received something like a demo to be placed on fresh Laravel/Filament project. I had tried to use Filament a little before to acustumed to how it works and as I understand you make resources with command and they go to app/Filament/[Name]. This demo doesnt have app/Filament folder but it has app/Providers/Filament inside it provider files for all 4 panels I was told about. Also in resources/views/filament there is 4 folders with same panel names like...
Solution:
I had to do ```php artisan config:clear php artisan route:clear php artisan view:clear php artisan cache:clear...

How to access form state in Custom Livewire component

I have a form with: public function form(Form $form): Form { return $form...

Github Action Closes Issue Even When All Fields Are Filled

I have an issue I just opened: https://github.com/filamentphp/filament/issues/17944 It was automatically closed by the bot due to "Needs more info". However, I have a repo listed and all field filled out completely in the issue. You might want to check the bot's settings and modify it so legitimate and properly formatted issues aren't closed. @Dan Harrin (Also, please take a look at my issue and reopen is possible.)...
Solution:
I removed your duplicate "Steps to reproduce" heading and the bot reopened it automatically

CSS not being applied to my tables

So I am completely new to filament, I just installed filament into my app. I followed the steps provided by the documentation. I am working on laravel. Basically my steps were: - Installed filaments/table only - then installed filaments...
Solution:
Do you still have a postcss.config.js ? If yes: Remove it

Multiple Model Export Action

What I am trying to do: Trying to create a custom export action in v4. From a single button, I want a trigger that will call multiple separate exporters (and therefore multiple CSV files exported). Essentially a streamlined way to export an entire database. What I did: Tried to make an action, with two exporters as that action. Clicking the button doesn’t appear to trigger the exporter. I’ve also tried extending the default exporter classes but still couldn’t figure it out. I fear this is incredibly simple but I’m too far into the woods. I’m not very comfortable with actions and classes, any help or suggestions would be appreciated....

Trying to make a rich editor plugin with @tiptap/extension-invisible-characters

Followed the doc. I have no console errors and the js is imported. But it looks like the plugin is not loaded. The commands don't exist in the editor $getEditor()?.commands.toggleInvisibleCharacters() ...