Select method [resolved]
I am using the Select method
But I notice that when I select a product and save it, the id is actually saved in the database.
Would it be possible to also save the product name?
2 Replies
Try Product::all()->pluck(‘name’, ‘name’);. That should do the trick
Thanks for the answer!
I thought about it, but it didn't work.
Wow, I'm completely wrong!!
You are correct, thank you!!