Initial: Laravel 13 setup with multi-tenant schema

This commit is contained in:
Jan (Plesk) 2026-04-20 00:34:21 +02:00
commit a78a50ef0c
69 changed files with 10805 additions and 0 deletions

8
routes/console.php Normal file
View file

@ -0,0 +1,8 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

16
routes/web.php Normal file
View file

@ -0,0 +1,16 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Models\Device;
Route::get('/', function () {
$device = Device::first();
return response()->json([
'app'=>'Heizung',
'status'=>'running',
'db'=>'ok',
'device_loaded'=>$device?->name,
'laravel'=>app()->version(),
'php'=>PHP_VERSION,
'time'=>now()->format('Y-m-d H:i:s'),
]);
});
Route::get('/health', fn() => response()->json(['ok'=>true]));