Support the ongoing development of →
Database Blade
Last updated 1 year ago.

What's the error message?????


Hi there!

On my view I have this:

@foreach($get_tracker_data as $get_tracker_data)
                                        <td><?php echo $get_tracker_data->neighbourhood;?></td>
                                        <td><?php echo $get_tracker_data->agent_first_name.' '.$get_tracker_data->agent_last_name;?></td>
                                        <td><?php echo $get_tracker_data->add_date;?></td>

And I'm getting the error: "Trying to get property of non-object" on the first line in php where I echo.

I did this EXACT same process on another function and view and it worked fine. Thanks.


Sign in to participate in this thread!


Your banner here too?

playstone playstone Joined 5 Jun 2016


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

Your logo here?

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

© 2023 - All rights reserved.