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);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire