Filament

F

Filament

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

Join

Connection set on morphed model

Any idea how do i setup my relations so that eloquent respects my $connection set on model ? in my Order.php i have ```php...

INFOLIST TO VIEW DOCUMENT

I want to view a list of document using infolists, Is it possible? Do I need to create a custom entries or any tricks?
Solution:
i solved with below tricks ``` $document_entries = []; foreach($documents as $index => $document){...

I uses have a problem v4 when use mask

i have a text input like this TextInput::make('base_price') ->label('💰 Price') ->mask(RawJs::make('$money($input)')) ->stripCharacters(',') ->numeric()...
No description

ColorColumn problem with hexadecimal value

i have this column in a table: ColorColumn::make('priority_value') ->label('Prioridad') ->sortable() ->toggleable(),...

please answer

Explain how Laravel uses the “Pipeline” pattern in middleware and other features.

Search input not showing on searchable Select

After upgrading to v4, the searchable select is not working property. The search input is simply not displayed, even though it's present in the DOM. I did all the upgrade, clear laravel cache, clear browser cache. I'm not using any theme, I don't have any published vendor files. It's a very minimal filament installation for a very little project. I tried removing everything else from the form and just display the select, still same issue. Here's the code...
Solution:
it's PopUpOff extension
No description

Feature Regression in v4 Select Component: Rendering a Blade View for noSearchResultsMessage

Hi I've encountered a feature regression from v3 that was extremely valuable for our application's user experience The Use Case: "Quick Create" from a Select Dropdown...

Light/dark mode with custom components

Hey guys, my custom blade components do not seem to respect the manual override of using filament's dark or light mode. They always show the styling of the systems mode. Image 1: System is light mode, filament uses system theme Image 2: System is light mode, filament uses dark theme...
No description

RichEditor not usable

Hey guys. I am running into a weird issue with the new RichEditor: I can't type in it at all. * The RichEdtiro renders and I can focus it by clicking toolbar buttons * But I can't actually type text in the editor * Also in the browser console I get this error: Uncaught (in promise) SyntaxError: Invalid left-hand side in assignment (at rich-editor.js?v=4.1.3.0:9:18777)...
Solution:
The update from 4.1.3 to 4.1.6 fixed it

Opening a modal in a custom page

Hey, just before I make a separate thread - want to ask if it's even possible. I have a Filament page, that renders a custom view (using the x-filament-panels etc. components). Inside that component, I list some of my models - I can generate a link, just by passing e.g. 'link' => route('filament.admin.resources.services.view', ['record' => $service->id]), ...
Solution:
The open-modal approach is great, if you just want to use the modals and keep everything in JS. You can also use our actions if you want to keep everything in PHP: https://filamentphp.com/docs/4.x/actions/overview

Vertical Scrolling on table

how i can add a Vertical Scrolling on table?

Repeater ->relationship() inside multiple Group ->relationship() in a form issue

Hi! I’m having an issue with relationships in my form. I have a resource with a form based on my Inscription model. In this model, I have one student belongTo(Student::class) relationship. ...

Identifying the current step when using getSteps() on CreateRecord class

Hey folks, I have a class extending CreateRecord and I'm using getSteps() to create the steps on the form. I find it impossible to figure out which step the user is on? I've tried to add ->persistStepInQueryString() on the wizard component on mount() but it's hard to work with the generated output which is like form.data%3A%3Awizard.master-project%3A%3Adata%3A%3Awizard-step Is there any other way I can do that?...

Creating tabs from blade view

I want to create a tab schema from a blade component. I followed the documentation and have this ```php <x-filament::tabs x-data="{ activeTab: 'tab1' }" vertical> <x-filament::tabs.item alpine-active="activeTab === 'tab1'"...

Spawning Modal on page visist

Hmm, how can i make a modal appear on page visit based on some params? So if = 1 show modal on page visit. No button click needed, i swear i have seen it in documentation but i cant find it.

iframe in rich editor

I created a Youtube Video block in the Rich Editor, which in its view file has an iframe that load the video id. But iframes dont seem to work when i renderRichContent() When i inspect the code, the wrapping div is just empty. ```...

v4.1 - sidebar breakpoint

How one can set the breakpoint for sidebar collapsing in v4.1? The sidebar is collapsing at 1024px. At 1025px it takes up way to much space. I am aware that there is an option to set the width of the sidebar, but in order for better UX I'd love to set the collapse breakpoint of a sidebar to at least 1280px. Can this be done in v4.1?...

Dynamic Filament Form Fields Not Registering in Livewire (data.answers_* missing)

Hi everyone, I’m working on a Filament form that generates fields dynamically based on database questions. Each question becomes a field like answers_1, answers_2, etc., depending on the job and client speciality. The field generation logic in my SubmissionResponseResourceForm is given in the file....

Tiny question

So, I'm playing with v4 sliders, made a component for having textarea and sliders, but seems that is misaligned when slider is using tooltip. Is there a way to fix it without removing tooltip? Should I open a bug report on github or something?...
No description

Filament Updating Non-Existent Relation Column - But why ?

What I am trying to do: I’m building a Filament admin form for editing a Studio record. In that form I have a Section with ->relationship('aidooData') so that nested fields correspond to a related StudioAidooData model. My filament version is 3.3.43. What I did: - In the migration for studio_aidoo_data I created a studio_id foreign ULID column (non-nullable) plus other fields....