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 – Access information with nested validation request

I want to access information within nested validation array to do a custom validation, here is my code: return [ ..., 'amount' => ['nullable', 'numeric'], 'currency_id' => ['nullable', 'integer', Rule::in($allowedCurrencyIds)], 'details' => ['nullable'], 'details.*.product_id' => ['required', 'integer', 'exists:products,id'], 'details.*.product_collection_id' =>…

VIEW QUESTION
Back To Top
Search