You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The column is added, but before any column (first one). Maybe because the HasStatusOperation is loaded before the setupListOperation ? Is there a way to do it after ? I would love to make operations like that to add columns/filters/fields to CRUDs that need it.
EDIT : for now I added ->makeFirst(); to my ID column, so this does the trick to put the field in 2nd
Please take a look at the details in the above discussion.
I tested it and the user is right. I also thought the list closure runs in the setup() before setupListOperation, so I removed setupListOperation() and moved columns in the list closure inside setup() of CRUD. Still the same result.
Apart from this, I also found:
CRUD::addColumn('number')->afterColumn('series'); works ✅
CRUD::column('number')->afterColumn('series'); - This adds column but afterColumn() doesn't works.❌
The text was updated successfully, but these errors were encountered:
Hey @pxpm
Please take a look at the details in the above discussion.
I tested it and the user is right. I also thought the list closure runs in the setup() before
setupListOperation
, so I removedsetupListOperation()
and moved columns in the list closure inside setup() of CRUD. Still the same result.Apart from this, I also found:
CRUD::addColumn('number')->afterColumn('series');
works ✅CRUD::column('number')->afterColumn('series');
- This adds column butafterColumn()
doesn't works.❌The text was updated successfully, but these errors were encountered: