Admin function for tenant

This commit is contained in:
2026-06-21 18:00:20 +02:00
parent 12f05ceb09
commit fed54514c8
17 changed files with 827 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Domains\Admin\Controllers;
use App\Scopes\CommonController;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class TenantGdprUpdateController extends CommonController
{
public function __invoke(Request $request): JsonResponse
{
$this->tenant->update([
'gdpr_text' => $request->input('gdpr_text'),
]);
return response()->json([
'status' => 'success',
'message' => 'Datenschutzerklärung wurde gespeichert.',
]);
}
}