ldc-gen-game-web/app/Http/Controllers/ProduitsController.php
Jérémy Munsch 1af96897f3
- Squash migration
- Normalize Model names and sql tables
- PHPCS clean up
- Change analytics form + field
2022-01-11 12:46:10 +01:00

17 lines
408 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Range;
class ProduitsController extends Controller
{
public function index()
{
$ranges = Range::with('products')->orderBy('id')->get();
if (view()->exists('front.basic.produits-porteurs')) {
return view('front.basic.produits-porteurs', compact('ranges'));
}
return redirect()->route('home');
}
}