Reputation: 47
After upgrading to Laravel 5.3, querying hybrid relations relations are throwing an error.
FatalErrorException in Builder.php line 613:
Call to a member function all() on array
I am using HybridRelations trait, and trying to query a Moloquent model from an Eloquent Model
$user->store()->first();
Here $user is an Eloquent Model and has a store(Moloquent). While querying this relation, I am getting this error.
Any help?
Upvotes: 0
Views: 573
Reputation: 882
Alpha Laravel 5.3 support is available on release >= 3.1.x (currently 3.1.0-alpha)
So you can simply upgrade dependency version to 3.1.0-alpha
and run composer update
Upvotes: 3