jeudi 3 septembre 2015

Pagination in Laravel with groupBy having function for custom coulmn

My requirement is

$jobs = \App\Job::all()->groupBy(function($item){return $item->created_at->format('M-Y');})->paginate(10);

and i am getting following error Call to undefined method Illuminate\Database\Eloquent\Collection::paginate();



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

Aucun commentaire:

Enregistrer un commentaire