skip to Main Content

Laravel – How to customize width of a modal form created by createOptionForm method in filament php

Below is my code for creating a modal form. How can I customize its width? I'd like to be a bit smaller ->createOptionForm([ FormsComponentsTextInput::make('name') ->required() ->maxLength(255) ->unique(modifyRuleUsing: function (Unique $rule) { return $rule->where('user_id', auth()->id()); }), FormsComponentsTextInput::make('stock') ->required() ->integer() ->minValue(1) ->maxLength(255),…

VIEW QUESTION

Laravel – DatePicker formatting filament v3

Package Version v3.0.0 DatePicker::make('reservation_date') ->label('Rezervasyon Tarihi') ->live(onBlur: true) I went to DatePicker component inside and add: public static string $defaultDateDisplayFormat = "d/m/Y"; However its still showing as "mm/dd/YYYY" on input before selection and after. Is there a solution for me…

VIEW QUESTION

Laravel – FilamentPHP Select input editing

Heyya, I am working on Select FormsComponentsSelect::make('roles')->options(function (){ $roles = Role::pluck('name'); $filtered_roles = $roles->filter(fn($role)=>$role!='super_admin'); return $filtered_roles; })->searchable()->preload()->multiple() Works great. However on the edit page it doesnt show already defined roles for specific user. Each time it show select one of…

VIEW QUESTION
Back To Top
Search