소스 검색

Merge branch 'dev' into pre

LuluFJ.Ho 2 년 전
부모
커밋
846b6efcb3
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0
    1
      app/Exceptions/Handler.php
  2. 1
    2
      app/Http/Requests/Api/SeminarSignUp/StoreRequest.php

+ 0
- 1
app/Exceptions/Handler.php 파일 보기

57
 
57
 
58
     public function handleApiException(Throwable $exception)
58
     public function handleApiException(Throwable $exception)
59
     { 
59
     { 
60
-        dd($exception);
61
         // Route Not Found 404
60
         // Route Not Found 404
62
         if ($exception instanceof RouteNotFoundException) {
61
         if ($exception instanceof RouteNotFoundException) {
63
             return $this->apiExceptionResponse($exception, Response::HTTP_NOT_FOUND, config('response-message.router_failed'));
62
             return $this->apiExceptionResponse($exception, Response::HTTP_NOT_FOUND, config('response-message.router_failed'));

+ 1
- 2
app/Http/Requests/Api/SeminarSignUp/StoreRequest.php 파일 보기

1
 <?php
1
 <?php
2
 
2
 
3
 namespace App\Http\Requests\Api\SeminarSignUp;
3
 namespace App\Http\Requests\Api\SeminarSignUp;
4
-
5
 use Illuminate\Foundation\Http\FormRequest;
4
 use Illuminate\Foundation\Http\FormRequest;
6
 
5
 
7
 class StoreRequest extends FormRequest
6
 class StoreRequest extends FormRequest
22
         return [
21
         return [
23
             'name.required'     => 'column [name] is required.',
22
             'name.required'     => 'column [name] is required.',
24
             'email.required'    => 'column [email] is required.',
23
             'email.required'    => 'column [email] is required.',
25
-            'mobile.required'   => 'column [mobile] is required.',
26
             'email.email'       => 'column [email] format error',
24
             'email.email'       => 'column [email] format error',
25
+            'mobile.required'   => 'column [mobile] is required.',
27
             'trackNo.required'  => 'column [trackNo] is required.',
26
             'trackNo.required'  => 'column [trackNo] is required.',
28
         ];
27
         ];
29
     }
28
     }