Hello! Seemingly noob question, but is confused and can't understand how forcem (or framework) to properly display data from the database.
In the database model data stored by the collection and get an array ($casts).
The table has 3 columns: name, age, work.
"name" => array:3 [▼ 0 => "Andrey
" 1 => "Aleksandr
" 2 => "Petr
" ] "age" => array:3 [▼ 0 => "18" 1 => "29" 2 => "38" ] "work" => array:3 [▼ 0 => "Manager" 1 => "Driver" 2 => "Cleaner" ]
How to bring the data to get 3 records, type:
Name: name
Age: age
Work: work
Name: name
Age: age
Work: work
Name: name
Age: age
Work: work
Maybe there is a possibility of tools laravel to do this?
In advance thanks all responded to my problem!