Tenant management

This commit is contained in:
2026-06-21 20:46:16 +02:00
parent 1b9384dad1
commit cfc7c7eee2
29 changed files with 884 additions and 8 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Domains\Admin\Controllers;
use App\Models\Tenant;
use App\Scopes\CommonController;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class ManagedTenantImpressUpdateController extends CommonController
{
public function __invoke(string $slug, Request $request): JsonResponse
{
$tenant = Tenant::where('slug', $slug)->firstOrFail();
$tenant->update([
'impress_text' => $request->input('impress_text'),
]);
return response()->json([
'status' => 'success',
'message' => 'Impressum wurde gespeichert.',
]);
}
}