Getting Error while filter by date... Call to a member function whereBetween() on array
$tag = Tag::with('tracks', 'elements')
->whereIn('category_id', [$genresCat->id, $moodCat->id, $productionCat->id, $vocalCat->id])
->whereIn('id', $id)
->get()
->toArray();
}
if($year){
$dateS = date('Y-m-d', strtotime('-5 year'));
$dateE = date('Y-m-d');
$tag->whereBetween('created_at', [$dateS, $dateE]);
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2UOMmTv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire