jeudi 29 septembre 2016

Laravel 5 create pagination from json data in blade view

I have done the query below, and I am able to get the json data from console log, my question is how to make a pagination link using the json data?

$viewData = DB::table('tbl_contents')
                ->where('record_type', '=', 'Event')
                ->where('status', '=', 1)
                ->paginate(3);

return json_encode($viewData);



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

Aucun commentaire:

Enregistrer un commentaire