2021-12-22 17:32:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use App\Models\Gamme;
|
|
|
|
|
use App\Models\Product;
|
|
|
|
|
|
|
|
|
|
class ProductsController extends Controller
|
|
|
|
|
{
|
2022-01-07 17:29:55 +01:00
|
|
|
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
2021-12-22 17:32:05 +01:00
|
|
|
public function show(Gamme $gamme, Product $product)
|
|
|
|
|
{
|
2022-01-23 13:31:31 +01:00
|
|
|
//$product = Product::whereSlug($product->slug)->first();
|
|
|
|
|
//dd($product);
|
2021-12-22 17:32:05 +01:00
|
|
|
return view('front.product', compact('product', 'gamme'));
|
|
|
|
|
}
|
|
|
|
|
}
|