I have just started with Laravel and I am trying to make a search function with proper pagination. The function works for page one but on pag
Route::get('product', function () { $product= App\product::paginate(15); $product->setPath('custom/url'); });
View:
{{ $product->appends(['search' => Request::get('page')])->links() }}