I have a collection like below and I want to echo out the value.
I found a way to do it (it's a primitive one) but want to learn the Laravel way (so it'll be clean) to use it in my view file using foreach. I used routes.php file since it's not a production version.
Route::get('getall', function() {
$album= Album::FindOrFail(2)->userImage;
for($i=0; $i<$album->count(); $i++)
{
echo $album[$i]['value'];
}
});