ldc-jeusselin/app/Http/Controllers/Fo/LegalNoticeController.php

20 lines
497 B
PHP

<?php
namespace App\Http\Controllers\Fo;
use App\Enums\StaticPageType;
use App\Http\Controllers\Controller;
use App\Models\StaticPage;
class LegalNoticeController extends Controller
{
/**
*
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
*/
public function index()
{
$staticPageModel = StaticPage::query()->where('type', StaticPageType::legals)->first();
return view('fo.legalnotice', compact('staticPageModel'));
}
}