Route::get('/products/{page?}', 'ProductController@index')->name('products');
Route::get('/products/{category}/{page?}', 'ProductController@index')->name('products');
I created a two routes.
First one for all products, other for categories.
I got an error:
Missing required parameters for [Route: products] [URI: products/{category}/{page?}].
It is laravel: 5.5
I am calling all products like this:
{{ route('products') }}