Support the ongoing development of Laravel.io →
Database Eloquent Queues
Last updated 2 years ago.
0
$categories->items()->where('id', $id);
Last updated 7 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!

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.