$collections in your first example is an instance of query builder, try this:
$collections = Collection::where('user_id', $user->id)->get();
longilineo said:
$collections in your first example is an instance of query builder, try this:
$collections = Collection::where('user_id', $user->id)->get();
Thanks longilineo!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community