The issue - I have an eloquent query which works fine by itself:
$files = $subscr->filestorage()
->with('serialkeys.vib')
->whereHas('serialkeys', function ($query) use ($vib) {
$query->whereIn('serialkeys.vib_id', $vib);
})->where('status', 'ready');
Above query works fine, but when I push query above to the Datatables the eager loading seems to break:
return Datatables::of($files)->make(true);
Results in:
Call to undefined method Watson\Rememberable\Query\Builder::serialkeys.vib()
Extensions that I am referring to:
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kpp3eT
via IFTTT
Aucun commentaire:
Enregistrer un commentaire