Support the ongoing development of Laravel.io →
Database Eloquent Views
Last updated 2 years ago.
0

What are you trying to do here:

@foreach($values as $value)
<ul><li>{{$song->title}}</li></ul>
@endforeach

Try:

@foreach($values as $value)
<ul><li>{{$value->title}}</li></ul>
@endforeach
0
@foreach($values as $value)
<ul><li>{{$song->title}}</li></ul>
@endforeach

the $value contains the data you want to access

do:

@foreach($values as $value)
<ul><li>{{$value->title}}</li></ul>
@endforeach
0

Hi sir @illuminate3 and @Steve, Yeah I'm done editing but still, the value is blank :( Any help plese :(

0

hi first try printing data.

<?php dd($values) ?>

@foreach($values as $value)

<ul><li>{{$value->title}}</li></ul> @endforeach

I doubts no data in values itself.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.