Bladeren bron

20220830 api

LuluFJ.Ho 2 jaren geleden
bovenliggende
commit
ddaa0ad6cb
2 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 1
    0
      app/Exceptions/Handler.php
  2. 1
    3
      app/Http/Controllers/Api/SeminarSignUpController.php

+ 1
- 0
app/Exceptions/Handler.php Bestand weergeven

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

+ 1
- 3
app/Http/Controllers/Api/SeminarSignUpController.php Bestand weergeven

@@ -22,7 +22,6 @@ class SeminarSignUpController extends ApiController
22 22
     // save data to db
23 23
     public function insertData(StoreRequest $request)
24 24
     {
25
-        dd(123);
26 25
         $name = $this->safeEncrypt($request->input('name', 'name'), 'arm');
27 26
         $email = $this->safeEncrypt($request->input('email', 'email'), 'arm');
28 27
         $mobile = $this->safeEncrypt($request->input('mobile', 'mobile'), 'arm');
@@ -46,12 +45,11 @@ class SeminarSignUpController extends ApiController
46 45
 
47 46
     public function getData()
48 47
     {
49
-        // dd(123);
50 48
         
51 49
         $list = $this->seminarSignUpSv->getData();
52 50
         
53 51
         $data = [
54
-            'list' => 1
52
+            'list' => $list
55 53
         ];
56 54
         
57 55
         return $this->apiResponse($data);