Admin function for tenant
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Admin\Controllers;
|
||||
|
||||
use App\Scopes\CommonController;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TenantPaymentUpdateController extends CommonController
|
||||
{
|
||||
public function __invoke(Request $request): JsonResponse
|
||||
{
|
||||
$this->tenant->update([
|
||||
'account_iban' => $request->input('account_iban'),
|
||||
'account_bic' => $request->input('account_bic'),
|
||||
'account_name' => $request->input('account_name'),
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'status' => 'success',
|
||||
'message' => 'Bezahldaten wurden gespeichert.',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user