ldc-doux/app/Http/Controllers/LegalsController.php

27 lines
608 B
PHP
Raw Normal View History

2022-05-12 16:03:40 +02:00
<?php
namespace App\Http\Controllers;
use App\Enums\Page;
use App\Models\SeoDatum;
use App\Models\Text;
class LegalsController extends Controller
{
2022-08-29 17:23:10 +02:00
/**
* Show the legal disclaimer view.
*
* @return \Illuminate\Contracts\View\View
*/
2022-05-12 16:03:40 +02:00
public function index()
{
$mentions_legales = Text::where('page', Page::mentions()->value)->first();
2022-08-29 17:23:10 +02:00
// Make ghost seoDatum from the gamme.
2022-08-11 12:34:27 +02:00
$seoDatum = new SeoDatum();
2022-05-12 16:03:40 +02:00
$seoDatum->title = $mentions_legales->title;
2022-07-27 14:33:56 +02:00
return view('front.legals', compact('seoDatum', 'mentions_legales'));
2022-05-12 16:03:40 +02:00
}
}