18 lines
444 B
PHP
18 lines
444 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Gamme;
|
|
use App\Models\Product;
|
|
|
|
class ProductsController extends Controller
|
|
{
|
|
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
|
|
public function show(Gamme $gamme, Product $product)
|
|
{
|
|
dd($product);
|
|
$product = Product::whereSlug($product->slug)->first();
|
|
|
|
return view('front.product', compact('product', 'gamme'));
|
|
}
|
|
}
|