You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace App\Http\Controllers\Web\Auth;
-
- use App\Exceptions\AppCommonException;
- use App\Http\Controllers\Web\WebController;
- use App\Kintone\Models\Customer;
- use Illuminate\Http\JsonResponse;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Auth;
-
- class MeController extends WebController
- {
- use Me;
-
-
- public function name(): string
- {
- return "ログインユーザー情報の参照";
- }
-
- public function description(): string
- {
- return "ログインユーザー情報を取得する";
- }
-
- public function __construct(protected MeParam $param)
- {
- parent::__construct();
- }
-
- protected function run(Request $request): JsonResponse
- {
- try {
- return $this->successResponse($this->me());
- } catch (AppCommonException) {
- return $this->failedResponse();
- }
- }
- }
|