28 lines
635 B
PHP
28 lines
635 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
use App\Models\Gerichte;
|
|
|
|
|
|
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']}"
|
|
]);
|
|
}
|
|
|
|
}
|