Code Styling

This commit is contained in:
2026-06-21 22:12:05 +02:00
parent aebb2f9aaa
commit c1ef1d71ad
49 changed files with 650 additions and 159 deletions
@@ -2,6 +2,8 @@
namespace App\Domains\Admin\Controllers;
use App\Domains\Admin\Actions\UpdateTenantGdpr\UpdateTenantGdprAction;
use App\Domains\Admin\Actions\UpdateTenantGdpr\UpdateTenantGdprRequest;
use App\Scopes\CommonController;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -10,13 +12,16 @@ class TenantGdprUpdateController extends CommonController
{
public function __invoke(Request $request): JsonResponse
{
$this->tenant->update([
'gdpr_text' => $request->input('gdpr_text'),
]);
$action = new UpdateTenantGdprAction(new UpdateTenantGdprRequest(
tenant: $this->tenant,
gdprText: $request->input('gdpr_text'),
));
$response = $action->execute();
return response()->json([
'status' => 'success',
'message' => 'Datenschutzerklärung wurde gespeichert.',
'status' => $response->success ? 'success' : 'error',
'message' => $response->message,
]);
}
}