26 lines
608 B
PHP
26 lines
608 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Enums\Page;
|
|
use App\Models\SeoDatum;
|
|
use App\Models\Text;
|
|
|
|
class LegalsController extends Controller
|
|
{
|
|
/**
|
|
* Show the legal disclaimer view.
|
|
*
|
|
* @return \Illuminate\Contracts\View\View
|
|
*/
|
|
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;
|
|
|
|
return view('front.legals', compact('seoDatum', 'mentions_legales'));
|
|
}
|
|
}
|