botaviator1990
dynamic field type
I want to add a select dropdown and in this dropdown all field types(like TextField, SelectField etc.) would be listed and If I choose one of them, then it would show selected field.
So please help me to reach this things
2 replies
getting error related Grammer
Illuminate\Database\Grammar::parameterize(): Argument #1 ($values) must be of type array, int given, called in /var/www/html/cinebiz-filament/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 1040
I am passing this in form builder
Card::make([
Repeater::make('banners')
->relationship()
->schema([
FileUpload::make('file_location')->multiple()->image()
]),
]),
3 replies
How to pass table column default value.
Fieldset::make('Logo')
->relationship('logo')
->schema([
FileUpload::make('file_location')->image()
])
I am uploading image using FileUpload, So I want to pass static value in column position_slug = 'logo'
Please help me to fix this.
10 replies
morphTo relationship
In model
public function image(){ return $this->morphTo(Image::class, 'imageable')->where('position_slug', 'logo'); }
in filament resources
Fieldset::make('Metadata')
->relationship('image')
->schema([
FileUpload::make('image')->image(),
])
but it's not uploading image in relationship model. and my relational table is in given screenshot.
5 replies
Need to get single data from relationship in table with where clause
return $table
->columns([
TextColumn::make('name')->sortable(),
TextColumn::make('addresses.title')->label('Address')->sortable(),
]);
I want to pull out one address where order is 1 in address table. Please let me know, How can I pass in above structure?
2 replies