Files
DBWT/M6/emensamobile/app/Http/Controllers/MainController.php
2024-01-17 15:23:48 +01:00

31 lines
705 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Routing\Controller as BaseController;
use App\Models\Gerichte;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class MainController extends BaseController
{
public function index() {
/*
Wenn Sie hier landen:
bearbeiten Sie diese Action,
so dass Sie die Aufgabe löst
*/
$gericht = new Gerichte();
$data = $gericht->db_gericht_select_karte();
return view('main.index', [
'data'=>$data,
'url' => 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"
]);
}
}