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

At the minute you're trying to print a Collection/Array which will throw an array to string conversion error. Use print_r($lead) or var_dump($lead) to see whats in the Collection/Array to use.

Are you using migrations and setup some models? That might help make more sense of how laravel works rather than using the DB facade.

Last updated 2 years ago.
0
<table>
    @foreach($leads as $lead)
        <tr><td>{{$lead->name}} - {{$lead->created_at}}</td></tr>
    @endforeach
</table>
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jasonrking jasonrking Joined 12 Sep 2014

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.