I am trying to edit product, But my route is not working, Please let me know How This Resource Route Will Work.
This is my Web File
Route::resource('product', 'ProductController')->except([
'store', 'update', 'destroy', 'edit'
]);
Here is my Controller File:
public function edit($product)
{
$product=Product::find($product);
return view('admin.product.edit', compact($product));
}
Here is my View File;
<li><a href="">Edit</a></li>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire