💄 Donne un coup de jeune

This commit is contained in:
2022-04-14 10:49:56 +02:00
parent e1f2294fe4
commit 665282d476
52 changed files with 3052 additions and 11430 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\View;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class GuestController extends Controller
{
public function home()
{
return view('guest.welcome');
}
public function faq($locale)
{
$view = sprintf('guest.faq-%s', $locale);
if (!View::exists($view)) {
throw new NotFoundHttpException(sprintf('FAQ for locale « %s » doesn\'t exist.', $locale));
}
return view($view);
}
public function privacy()
{
return view('guest.privacy');
}
}