I wants to show users list into my dashboard pannel but it shows me this problem :
Too few arguments to function App\Http\Controllers\ProduitController::show(), 0 passed in C:\wamp64\www\Ecommerce\vendor\laravel\framework\src\Illuminate\Routing\Controller.php on line 54 and exactly 1 expected
Controller File :
public function show($id)
{
$produit = Produit::find($id);
return view('produits', compact('produit'));
}
blade file :
@foreach($produits as $produit)
<div class="product__item__pic set-bg" data-setbg="">
<ul class="product__item__pic__hover">
<li><a href="#"><i class="fa fa-heart"></i></a></li>
<li><a href="#"><i class="fa fa-retweet"></i></a></li>
<li><a href="#"><i class="fa fa-shopping-cart"></i></a></li>
</ul>
</div>
<div class="product__item__text">
<h6><a href="#"></a></h6>
<h5> Mad</h5>
</div>
@endforeach
Route :
Route::get('/produits','ProduitController@show');
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/tMu9cgj
via IFTTT
Aucun commentaire:
Enregistrer un commentaire