Pagination for search results laravel 5.3
a quick way in view (Lavarel 5.7)
$product->appends(Request::all())->links();
If you want to apply filters to the next page you should add them to your paginator like this:
$product = Product::where('naam', 'LIKE', '%' . $q . '%')
->orWhere('beschrijving', 'LIKE', '%' . $q . '%')
->paginate(6);
$product->appends(['search' => $q]);
And change your route from post to get:
Route::get('search', 'IndexController@search');