jeudi 9 février 2017

issue with rememberable and datatables

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:

http://ift.tt/1GoqM6J

http://ift.tt/1HyPe8m



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kpp3eT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire