From 8148e22206ab826aa63a223b93e3c66da6b9de58 Mon Sep 17 00:00:00 2001 From: Galih Pratama Date: Sun, 20 Sep 2020 17:56:27 +0700 Subject: [PATCH] API Foodmarket --- .idea/foodmarket-backend.iml | 1 + .idea/php.xml | 1 + .../33cdd3b8c61fc209aab9e9b947a657801b4cfbb3 | 0 .../3c84dcdc6bbe3d7817c49dcdc327b926fea1808a | 0 .../55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 | 7 + .../67cde7ebf0c82e44eedc43a9b83d4fa13c684078 | 0 .../b337d07ab0e7d54bf5547a0321a43ecafbd73ec1 | 0 .../f3cae797cbcb5410c34784294fca1a1cc4d472a8 | 3 + .idea/sonarlint/issuestore/index.pb | 13 ++ .idea/workspace.xml | 54 ++++++-- .../Controllers/API/MidtransController.php | 128 +++++++++++++++++- .../Controllers/API/TransactionController.php | 61 +++++++++ app/Http/Controllers/API/UserController.php | 2 +- app/Models/Transaction.php | 14 ++ composer.json | 3 +- composer.lock | 51 ++++++- config/services.php | 8 ++ resources/views/midtrans/error.blade.php | 0 resources/views/midtrans/success.blade.php | 0 resources/views/midtrans/unfinish.blade.php | 0 routes/web.php | 5 + 21 files changed, 333 insertions(+), 18 deletions(-) create mode 100644 .idea/sonarlint/issuestore/3/3/33cdd3b8c61fc209aab9e9b947a657801b4cfbb3 create mode 100644 .idea/sonarlint/issuestore/3/c/3c84dcdc6bbe3d7817c49dcdc327b926fea1808a create mode 100644 .idea/sonarlint/issuestore/5/5/55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 create mode 100644 .idea/sonarlint/issuestore/6/7/67cde7ebf0c82e44eedc43a9b83d4fa13c684078 create mode 100644 .idea/sonarlint/issuestore/b/3/b337d07ab0e7d54bf5547a0321a43ecafbd73ec1 create mode 100644 .idea/sonarlint/issuestore/f/3/f3cae797cbcb5410c34784294fca1a1cc4d472a8 create mode 100644 resources/views/midtrans/error.blade.php create mode 100644 resources/views/midtrans/success.blade.php create mode 100644 resources/views/midtrans/unfinish.blade.php diff --git a/.idea/foodmarket-backend.iml b/.idea/foodmarket-backend.iml index 84a545d..8bd3141 100644 --- a/.idea/foodmarket-backend.iml +++ b/.idea/foodmarket-backend.iml @@ -43,6 +43,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index 50283c0..1079368 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -120,6 +120,7 @@ + diff --git a/.idea/sonarlint/issuestore/3/3/33cdd3b8c61fc209aab9e9b947a657801b4cfbb3 b/.idea/sonarlint/issuestore/3/3/33cdd3b8c61fc209aab9e9b947a657801b4cfbb3 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/3/c/3c84dcdc6bbe3d7817c49dcdc327b926fea1808a b/.idea/sonarlint/issuestore/3/c/3c84dcdc6bbe3d7817c49dcdc327b926fea1808a new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/5/5/55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 b/.idea/sonarlint/issuestore/5/5/55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 new file mode 100644 index 0000000..1412cd5 --- /dev/null +++ b/.idea/sonarlint/issuestore/5/5/55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 @@ -0,0 +1,7 @@ + +Iphp:S121)"0Add curly braces around the nested statement(s).(Ž¦Üáùÿÿÿÿ +Dphp:S121,"0Add curly braces around the nested statement(s).(¹§–à +Rphp:S836="2Review the data-flow - use of uninitialized value.(¯³”òýÿÿÿÿ8§‡ÄØÊ. +Iphp:S121"0Add curly braces around the nested statement(s).(„¶áìøÿÿÿÿ +Iphp:S121"0Add curly braces around the nested statement(s).(ÈÜ¥Åøÿÿÿÿ +L php:S14817"1Remove this unused "$transaction" local variable.(Ô‰ð8§‡ÄØÊ. \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/6/7/67cde7ebf0c82e44eedc43a9b83d4fa13c684078 b/.idea/sonarlint/issuestore/6/7/67cde7ebf0c82e44eedc43a9b83d4fa13c684078 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/b/3/b337d07ab0e7d54bf5547a0321a43ecafbd73ec1 b/.idea/sonarlint/issuestore/b/3/b337d07ab0e7d54bf5547a0321a43ecafbd73ec1 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/f/3/f3cae797cbcb5410c34784294fca1a1cc4d472a8 b/.idea/sonarlint/issuestore/f/3/f3cae797cbcb5410c34784294fca1a1cc4d472a8 new file mode 100644 index 0000000..0934390 --- /dev/null +++ b/.idea/sonarlint/issuestore/f/3/f3cae797cbcb5410c34784294fca1a1cc4d472a8 @@ -0,0 +1,3 @@ + +Xphp:S112"FDefine and throw a dedicated exception instead of using a generic one.(çï‹Ê +i php:S1192"VDefine a constant instead of duplicating this literal "Authentication Failed" 3 times.(æëóõ \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb index e69de29..d60efd3 100644 --- a/.idea/sonarlint/issuestore/index.pb +++ b/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,13 @@ + +> +routes/api.php,b\3\b337d07ab0e7d54bf5547a0321a43ecafbd73ec1 +[ ++app/Http/Controllers/API/UserController.php,f\3\f3cae797cbcb5410c34784294fca1a1cc4d472a8 +4 +.env,3\c\3c84dcdc6bbe3d7817c49dcdc327b926fea1808a +C +config/services.php,6\7\67cde7ebf0c82e44eedc43a9b83d4fa13c684078 +_ +/app/Http/Controllers/API/MidtransController.php,3\3\33cdd3b8c61fc209aab9e9b947a657801b4cfbb3 +b +2app/Http/Controllers/API/TransactionController.php,5\5\55744e70dd371f29fe5957f1d8fc8c5b46e0eda4 \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0303d6a..f4c68ef 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -23,20 +23,28 @@ + + + + + + + - - - + + + + - + $PROJECT_DIR$/composer.json @@ -173,6 +181,7 @@ + @@ -186,11 +195,13 @@ - + + + @@ -208,7 +219,9 @@