public function destroy(Image $image, Product $id)
{
$product = Product::find($id);
Storage::disk('public')->delete('uploads/product_images/'.$image->id);
$image->delete();
return redirect('edit');
}
Route::group(['middleware' => 'admin' ], function(){
Route::get('/admin', 'AdminController@index');
Route::get('/category/create ', 'AdminCategoriesController@create');
Route::post("/categories/category/store", "AdminCategoriesController@store");
Route::get("/categories", "AdminCategoriesController@index");
Route::get('/products', 'AdminProductsController@index');
Route::get('/product/create ', 'AdminProductsController@create');
Route::post("/products/product/store", "AdminProductsController@store");
Route::get("/product/edit/{product}", "AdminProductsController@edit")->name('edit');
Route::post("/products/product/edit_store/{id}", "AdminProductsController@edit_store");
Route::get("/products/product/delete/{id}", "AdminProductsController@destroy");
Route::get('images/{image}/destroy', 'AdminProductsController@destroy')->name('images.destroy');
<a href="/images/{{$image->id}}/destroy" class="card-link">удалить</a>