21 lines
527 B
PHP
21 lines
527 B
PHP
<?php
|
|
|
|
namespace App\Domains\Admin\Controllers;
|
|
|
|
use App\Scopes\CommonController;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class TenantContactGetController extends CommonController
|
|
{
|
|
public function __invoke(Request $request): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'email' => $this->tenant->email,
|
|
'email_finance' => $this->tenant->email_finance,
|
|
'postcode' => $this->tenant->postcode,
|
|
'city' => $this->tenant->city,
|
|
]);
|
|
}
|
|
}
|