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