Skip to content
Discussion options

You must be logged in to vote

Hello @ceeckhout

Editable columns doesn't understand relationships like backpack fields do.

You should provide the database column name of the relationship, in your case, probably supplier1_id so it should be:

CRUD::column('supplier1_id') // use the database column name
->type('editable_select')
->options(\App\Models\Supplier::all()->pluck('name', 'id')->toArray());

Cheers

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ceeckhout
Comment options

Answer selected by ceeckhout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants