ldc-doux/app/Http/Controllers/PolicyController.php
2022-08-11 12:34:27 +02:00

21 lines
490 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'));
}
}