Support the ongoing development of Laravel.io →
Database Eloquent Queues
Last updated 4 months ago.
0
$categories->items()->where('id', $id);
Last updated 5 years ago.
0

astroanu said:

$categories->items()->find($id);

FatalErrorException in 11d5f0833bcd4d68d30d6fb54d75aa130b1e9849.php line 112: Call to a member function find() on array in 11d5f0833bcd4d68d30d6fb54d75aa130b1e9849.php line 112

0

oh sorry it returns a collection so it should be a where or any of the collection methods stated here https://laravel.com/docs/5.1/collections#available-methods

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

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.

© 2022 Laravel.io - All rights reserved.