Laravel route not found, but if it is defined

1

I have defined a route in the Laravel web routes file:

// Rutas para el Product
Route::resource('product', 'ProductController');
Route::get('/product/download', 'ProductController@download')->name('product.download');

The download method if it exists on the controller:

But when I try to access the path with name product.download it throws me the path error 404 not found.

What could be the problem?

    
asked by frank tomaylla vilca 21.10.2018 в 20:51
source

0 answers