Initial: Laravel 13 setup with multi-tenant schema
This commit is contained in:
commit
a78a50ef0c
69 changed files with 10805 additions and 0 deletions
8
routes/console.php
Normal file
8
routes/console.php
Normal 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
16
routes/web.php
Normal 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]));
|
||||
Loading…
Add table
Add a link
Reference in a new issue