ldc-doux/app/Http/Controllers/PolicyController.php
Sebastien Hattry b60513fb72 Fix bugs sh01
2022-07-18 10:36:38 +00:00

21 lines
482 B
PHP

<?php
namespace App\Http\Controllers;
use App\Enums\Page;
use App\Models\SeoDatum;
use App\Models\Text;
class PolicyController extends Controller
{
public function index()
{
$privacy_policy = Text::where('page', Page::charte()->value)->first();
//make ghost seoDatum from the gamme
$seoDatum = new SeoDatum();
$seoDatum->title = $privacy_policy->title;
return view('front.policy', compact('seoDatum', 'privacy_policy'));
}
}