First steps

This commit is contained in:
2026-03-22 19:00:00 +01:00
parent 54f6a1d235
commit 5a5b9f7227
19 changed files with 2583 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
class WebsiteController extends Controller
{
private function setLang($lang)
{
if (! in_array($lang, ['de', 'en'])) {
$lang = 'en';
}
App::setLocale($lang);
}
//
public function index(Request $request, $lang){
$this->setLang($lang);
return view('layout.app', ['page' => 'content.index']);
}
}