shenntek
shenntek
FFilament
Created by shenntek on 5/31/2024 in #❓┊help
Too much space between Widgets and Content when having Clusters (submenu)
8 replies
FFilament
Created by shenntek on 5/31/2024 in #❓┊help
Too much space between Widgets and Content when having Clusters (submenu)
No description
8 replies
FFilament
Created by shenntek on 5/31/2024 in #❓┊help
Too much space between Widgets and Content when having Clusters (submenu)
8 replies
FFilament
Created by shenntek on 5/31/2024 in #❓┊help
Too much space between Widgets and Content when having Clusters (submenu)
i've also created a cumbersome filament repo for this 😥
screenshot is here:
8 replies
FFilament
Created by shenntek on 5/31/2024 in #❓┊help
Too much space between Widgets and Content when having Clusters (submenu)
8 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
but for now my workaround is that in my intermediate table i just make sure i dont use duplicate column names
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
I also found the reason why the EditAction receives the wrong form input when duplicate column names in both tables are used. in filament/tables/src/Actions/EditAction.php there only is a check for the BelongsToMany relationship when pressing the save button. That is okay, but the same thing should be done in the setUp() function. but there it just converts the $record->attributesToArray() and when using the same columns names it just takes the first columns of the joined tables. in the $this->action function you can see that the pivot columns get renamed with a prefix of pivot_. which is a good thing not to have duplicates! so for example: 'quantity' becomes 'pivot_quantity' . and only those columns will get saved --> $pivotData = Arr::only($data, $pivotColumns); Will create ticket for that as well .
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
i really appreciate it 🙂
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
Thank you for your time at least!
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
no absolutely not! no excuses plz. it's just hard to explain via text sometimes
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
will create issue tomorrow with an example repo
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
sorry my bad communication
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
okay xD
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
in this specific setup
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
will do, but i thought that you had the idea i was configuring the RelationManager wrong
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
just to create a correct query builder --> SQL
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
😄
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
the ->defaultSort('products.id', 'desc') is a workaround
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
yes it is. 🙂
102 replies
FFilament
Created by shenntek on 4/25/2024 in #❓┊help
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
yes precisely but then i get the sql error
102 replies