I have problems trying to access some routes that come from a resource ( products ), it is inside a group, it follows my code:
Route::group([
'middleware' => ['web', 'auth'],
'prefix' => Config::get('shop.admin.url') . '/products',
'namespace' => 'LaraShop\Products\Http\Controllers',
'as' => 'products'
], function()
{
Route::resource('/', 'ProductsController');
});
Routes generated:
| POST | admin/products | store | LaraShop\Products\Http\Controllers\ProductsController@store | auth
| GET|HEAD | admin/products | index | LaraShop\Products\Http\Controllers\ProductsController@index | auth
| GET|HEAD | admin/products/create | create | LaraShop\Products\Http\Controllers\ProductsController@create | auth
| DELETE | admin/products/{} | destroy | LaraShop\Products\Http\Controllers\ProductsController@destroy | auth
| PUT|PATCH | admin/products/{} | update | LaraShop\Products\Http\Controllers\ProductsController@update | auth
| GET|HEAD | admin/products/{} | show | LaraShop\Products\Http\Controllers\ProductsController@show | auth
| GET|HEAD | admin/products/{}/edit | edit | LaraShop\Products\Http\Controllers\ProductsController@edit | auth
When accessing the path admin/products/1/edit
it returns error 404.
Has anyone ever been through this?