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
|
|
|
|
|
{
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
|
|
|
|
$mentions_legales = Text::where('page', Page::mentions()->value)->first();
|
|
|
|
|
|
|
|
|
|
//make ghost seoDatum from the gamme
|
|
|
|
|
$seoDatum = new SeoDatum();
|
|
|
|
|
$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
|
|
|
}
|
|
|
|
|
}
|