2020-10-26 16:01:14 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use App\Models\Content;
|
|
|
|
|
|
|
|
|
|
class ViewContentController extends Controller
|
|
|
|
|
{
|
2020-10-26 17:37:14 +01:00
|
|
|
// TODO ? Peut être revoir la manière de gérer les content, accès par id pas super, même dans le menu
|
|
|
|
|
|
2020-10-26 16:01:14 +01:00
|
|
|
public function reglement() {
|
|
|
|
|
$content = Content::find(3);
|
|
|
|
|
return view('front.basic.reglement', compact('content'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function charte() {
|
|
|
|
|
$content = Content::find(2);
|
|
|
|
|
return view('front.basic.charte', compact('content'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function legals() {
|
|
|
|
|
$content = Content::find(1);
|
|
|
|
|
return view('front.basic.legals', compact('content'));
|
|
|
|
|
}
|
|
|
|
|
}
|