Mostafa
Mostafa
FFilament
Created by Mostafa on 11/15/2023 in #❓┊help
duplicate fields when use Textarea (required) in RepeaterForm
when use this. and send empty title. duplicate files in forms Forms\Components\Repeater::make('options') ->relationship('options') ->label('options)') ->schema([ Textarea::make('title') ->required() ->label('متن گزینه') ->rows(1), TextInput::make('title') ->label('متن گزینه') ->required(), Toggle::make('is_correct')->label('cor') ])->defaultItems(4)->columnSpan(2)->grid(2) ->addable(false) ->deletable(false),
3 replies
FFilament
Created by Mostafa on 10/25/2023 in #❓┊help
search id column in table
postgress sql: SQLSTATE[42883]: Undefined function: 7 ERROR: function lower(bigint) does not exist LINE 1: ...e from "blg_categories" where "type_id" = $1 and (lower(id):... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. SELECT count(*) AS aggregate FROM "blg_categories" WHERE "type_id" = -9009 AND ( lower(id):: text LIKE % 1 % OR lower(title):: text LIKE % 1 % OR lower(slug):: text LIKE % 1 % )
4 replies
FFilament
Created by Mostafa on 9/15/2023 in #❓┊help
tailwind config preset
hi. when i deploy project and build on server i get this error [vite:css] [postcss] Cannot find module '../../../../vendor/filament/filament/tailwind.config.preset' can not read this file when build on server but local worked.
1 replies
FFilament
Created by Mostafa on 9/15/2023 in #❓┊help
select filter with belongsToMany
im get error when selectfilter in table belongsToManyRelation. this code worked in filament version2!! SQLSTATE[42883]: Undefined function: 7 ERROR: could not identify an equality operator for type json LINE 1: select distinct "gen_constants".* from "gen_constants" left ... ^ SELECT DISTINCT "gen_constants".* FROM "gen_constants" LEFT JOIN "inf_learn_box_sections" ON "gen_constants"."id" = "inf_learn_box_sections"."section_id" WHERE "parent_id" = -1000 ORDER BY "gen_constants"."name" ASC -------------- this filter:: SelectFilter::make('sections') ->label('categoryFilter') ->relationship('sections', 'name' , function (Builder $query){ $query->where('parent_id', Constants::MainCategory); })
9 replies
FFilament
Created by Mostafa on 9/10/2023 in #❓┊help
searchable in id column
in the filament 3 version. im added searchable() to the id column. and get Undefined function: 7 ERROR: function lower(bigint) does not exist LINE 1: ...f_learn_boxes" where "parent_id" is not null and (lower(id):... ^ HINT: No function matches the given name and argument types error. While I did not have this error in version 2
3 replies