skip to Main Content

Laravel – Filament: Hiding Form Input Dynamically

I am working with Filament and Laravel and currently I've got these two field inputs for choosing City BASED ON Province Field, inside form() method: Select::make("meta.employment_state") ->label("Province") ->getSearchResultsUsing(fn (string $search): array => State::query()->where('name', 'like', "%{$search}%")->limit(10)->pluck('name', 'id')->toArray()) ->getOptionLabelUsing(fn ($value): ?string =>…

VIEW QUESTION

Laravel – FilamentPHP – Table actions not firing

I have a table function in a custom Filament page: I have initialized the page like this: <?php namespace AppFilamentAppResourcesOIPRequestResourcePages; use AppFilamentAppResourcesOIPRequestResource; use FilamentResourcesPagesPage; use FilamentTablesContractsHasTable; use FilamentFormsContractsHasForms; use FilamentTablesTable; use IlluminateDatabaseEloquentBuilder; use AppModelsOIPRequest; use FilamentTablesFiltersSelectFilter; use FilamentTablesFiltersFilter; use FilamentResourcesPagesListRecordsTab;…

VIEW QUESTION

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
Back To Top
Search