How to create custom pagination without datatable in laravel microservice

Step 1:create button input in blade file

Step 2: declare variable like curtpage, pagelimit and total record

when you click the button then apply business logic inside jquery/javascript function

Step 3: when we get data after ajax success function then apply logic

Step 4: set routing in client side

Route::prefix(‘/touroperator’)->group(function () use ($namespace) {

Route::get('iternarydetail/{email}',"$tourcontroller@getiternary");

});

Step 5: get token and client id in client side controller using function

Step 6: set env and config flie

GET_MYHOLIDAYITERNARY_URL=/api/v1/j/iternarydetail

Step 6:set Routing in server side

 Route::get(‘iternarydetail/{email}’, ‘Admin\AdminTPController@iternarydetail’);

Step 7: apply pagination query inside sever side controller function

finally output view looks like

Rakesh K
Tagged : /

Leave a Reply