I have task-variations that have tables
+---------------------------+
|task-variations|
+------------------+
| id |
| task_id |
| variant |
| option |
+-----------------+
I have some options in variant like
programming Code
Description
image
links
list Array
So how could I define options so I could return all of theme in right way should I create Controller For each one and I need to do it outside my blade to keep it clean
Any ideas ?