I can't seem to find an answer simple enough or similar enough. Maybe it's my search terms?
I want to create an array for a form and assign an id to each entry. That way I don't have to call to the db or store a string that might change in the future. The array/object would only have 3-4 values.
For example:
id: 1 name: 'cancel order'
id: 2 name: 'place hold;
The contents would be used in a foreach loop in a laravel blade.
Am I heading in the right direction, or is there a better way to do this?