Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

27 lines
560B

  1. <?php
  2. namespace App\Http\Controllers\Web;
  3. use App\Codes\HTTPResultCode as ResultCode;
  4. abstract class FromKintoneController extends WebController
  5. {
  6. public function __construct()
  7. {
  8. parent::__construct();
  9. $this->middleware('fromKintone');
  10. }
  11. protected function makeResponse()
  12. {
  13. if ($this->resultCode === ResultCode::SECCESS) {
  14. return response()->json([
  15. 'result' => 'SUCCESS'
  16. ]);
  17. }
  18. return response()->json([
  19. 'result' => 'FAILED'
  20. ]);
  21. }
  22. }