default select on relationship
Hello, i would like put a default value for my filter select but that didn"t works :
The table Exercice looks like :
4 Replies
The default would need to be the primary key of the default value. So in this case if you put 1 as the default it would show 2022
I already try this but its didn't works :
no filter is put on default with this code
Solution
It is multiple, try:
->default([1])
Its works ! Thanks a lot !