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

Are you sure that all your employees are related to valid stores? If one or more have an invalid store_id, you're going to encounter this error if you don't check before trying to output the store name.

Please show us your employee and store models, and the code you're using to retrieve and loop over them. Use http://laravel.io/bin if needed.

Last updated 9 years ago.
0

So many possible reasons... need more information.

0

I think you are assigning an Array to Store before passing it to your view. use dd() to debug that store variable.

0

Sorry everyone. Seems an employee without a store slipped into the results.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

timboozle timboozle Joined 7 Jan 2015

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.