Skip to content

Commit ac2eb9b

Browse files
Merge pull request #17 from uasoft-indonesia/update-template
update badaso starter use laravel 8
2 parents 10d4513 + bb519b5 commit ac2eb9b

File tree

135 files changed

+1738
-737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1738
-737
lines changed

.DS_Store

8 KB
Binary file not shown.

.env.example

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
APP_NAME=Laravel
1+
APP_NAME=Badaso
22
APP_ENV=local
3-
APP_KEY=base64:VCHMu9h9fjxjyMZBtEEeY78bRhQraGg/jA08QP+AAjU=
3+
APP_KEY=
44
APP_DEBUG=true
5-
APP_SERVICE=badaso
6-
APP_PORT=8000
7-
APP_URL=http://localhost:8000
5+
APP_URL=
86

9-
LOG_CHANNEL=daily
7+
LOG_CHANNEL=stack
108
LOG_DEPRECATIONS_CHANNEL=null
119
LOG_LEVEL=debug
1210

@@ -19,14 +17,14 @@ DB_PASSWORD=password
1917

2018
BROADCAST_DRIVER=log
2119
CACHE_DRIVER=file
22-
FILESYSTEM_DISK=public
20+
FILESYSTEM_DRIVER=public
2321
QUEUE_CONNECTION=sync
2422
SESSION_DRIVER=file
2523
SESSION_LIFETIME=120
2624

27-
MEMCACHED_HOST=memcached
25+
MEMCACHED_HOST=127.0.0.1
2826

29-
REDIS_HOST=redis
27+
REDIS_HOST=127.0.0.1
3028
REDIS_PASSWORD=null
3129
REDIS_PORT=6379
3230

@@ -53,14 +51,16 @@ PUSHER_APP_CLUSTER=mt1
5351
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
5452
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
5553

56-
JWT_SECRET=
54+
JWT_SECRET=QhU5FAPWJ1yVKMp4PL6TIA2bIbtgQ4hyxkmftVBzP3JmynyDESOOMK8E2VdgY7cR
5755
BADASO_AUTH_TOKEN_LIFETIME=
5856
BADASO_LICENSE_KEY=
5957
ARCANEDEV_LOGVIEWER_MIDDLEWARE=
58+
MIX_BADASO_MAINTENANCE=false
6059
MIX_BADASO_PLUGINS=
6160
MIX_DEFAULT_MENU=general
6261
MIX_BADASO_MENU=${MIX_DEFAULT_MENU}
6362
MIX_ADMIN_PANEL_ROUTE_PREFIX=badaso-dashboard
63+
MIX_BADASO_SECRET_LOGIN_PREFIX=badaso-secret-login
6464
MIX_API_ROUTE_PREFIX=badaso-api
6565
MIX_LOG_VIEWER_ROUTE="log-viewer"
6666
MIX_FIREBASE_API_KEY=
@@ -72,7 +72,6 @@ MIX_FIREBASE_APP_ID=
7272
MIX_FIREBASE_MEASUREMENT_ID=
7373
MIX_FIREBASE_WEB_PUSH_CERTIFICATES=
7474
MIX_FIREBASE_SERVER_KEY=
75-
FILESYSTEM_DRIVER=public
7675
AWS_URL=
7776
GOOGLE_DRIVE_CLIENT_ID=
7877
GOOGLE_DRIVE_CLIENT_SECRET=
@@ -94,4 +93,6 @@ REDIS_CLIENT=predis
9493
WORKSPACE_PUID=1000
9594
WORKSPACE_PGID=1000
9695
WWWGROUP=1000
97-
WWWUSER=1000
96+
WWWUSER=1000
97+
98+
JWT_ALGO=HS256

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
.env
77
.env.backup
88
.phpunit.result.cache
9+
docker-compose.override.yml
910
Homestead.json
1011
Homestead.yaml
1112
npm-debug.log
1213
yarn-error.log
1314
/.idea
1415
/.vscode
16+
.DS_Store
1517

1618
# Swagger generated
1719
storage/api-docs
@@ -25,4 +27,4 @@ storage/api-docs
2527
# Package manager history (you can delete it for your own project)
2628
yarn.lock
2729
package-lock.json
28-
composer.lock
30+
composer.lock

.styleci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
php:
22
preset: laravel
3+
version: 8
34
disabled:
45
- no_unused_imports
56
finder:
67
not-name:
78
- index.php
9+
- server.php
810
js:
911
finder:
1012
not-name:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ All financial support that badaso gets will also shared to project above to supp
156156

157157
## License
158158

159-
See the [LICENSE](./LICENSE) file for licensing information.
159+
See the [LICENSE](./LICENSE) file for licensing information.

app/Exceptions/Handler.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,17 @@
77

88
class Handler extends ExceptionHandler
99
{
10-
/**
11-
* A list of exception types with their corresponding custom log levels.
12-
*
13-
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
14-
*/
15-
protected $levels = [
16-
//
17-
];
18-
1910
/**
2011
* A list of the exception types that are not reported.
2112
*
22-
* @var array<int, class-string<\Throwable>>
13+
* @var array<int, class-string<Throwable>>
2314
*/
2415
protected $dontReport = [
2516
//
2617
];
2718

2819
/**
29-
* A list of the inputs that are never flashed to the session on validation exceptions.
20+
* A list of the inputs that are never flashed for validation exceptions.
3021
*
3122
* @var array<int, string>
3223
*/

app/Http/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Kernel extends HttpKernel
1616
protected $middleware = [
1717
// \App\Http\Middleware\TrustHosts::class,
1818
\App\Http\Middleware\TrustProxies::class,
19-
\Illuminate\Http\Middleware\HandleCors::class,
19+
\Fruitcake\Cors\HandleCors::class,
2020
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
2121
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
2222
\App\Http\Middleware\TrimStrings::class,
@@ -33,6 +33,7 @@ class Kernel extends HttpKernel
3333
\App\Http\Middleware\EncryptCookies::class,
3434
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
3535
\Illuminate\Session\Middleware\StartSession::class,
36+
// \Illuminate\Session\Middleware\AuthenticateSession::class,
3637
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
3738
\App\Http\Middleware\VerifyCsrfToken::class,
3839
\Illuminate\Routing\Middleware\SubstituteBindings::class,
@@ -55,7 +56,6 @@ class Kernel extends HttpKernel
5556
protected $routeMiddleware = [
5657
'auth' => \App\Http\Middleware\Authenticate::class,
5758
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
58-
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
5959
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
6060
'can' => \Illuminate\Auth\Middleware\Authorize::class,
6161
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,

app/Http/Swagger/swagger_models/auth.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
* tags={"auth"},
88
* summary="Forgot Password",
99
* description="Send forgot password request",
10+
*
1011
* @OA\RequestBody(
12+
*
1113
* @OA\MediaType(
1214
* mediaType="application/json",
15+
*
1316
* @OA\Schema(
17+
*
1418
* @OA\Property(
1519
* property="email",
1620
* type="string",
@@ -19,6 +23,7 @@
1923
* )
2024
* )
2125
* ),
26+
*
2227
* @OA\Response(response=200, description="Successful operation"),
2328
* @OA\Response(response=400, description="Bad request"),
2429
* @OA\Response(response=401, description="Unauthorized"),
@@ -33,10 +38,14 @@
3338
* tags={"auth"},
3439
* summary="Verify Forgot Password Token",
3540
* description="Verify the forgot password token sent to the email",
41+
*
3642
* @OA\RequestBody(
43+
*
3744
* @OA\MediaType(
3845
* mediaType="application/json",
46+
*
3947
* @OA\Schema(
48+
*
4049
* @OA\Property(
4150
* property="email",
4251
* type="string",
@@ -50,6 +59,7 @@
5059
* )
5160
* )
5261
* ),
62+
*
5363
* @OA\Response(response=200, description="Successful operation"),
5464
* @OA\Response(response=400, description="Bad request"),
5565
* @OA\Response(response=401, description="Unauthorized"),
@@ -64,10 +74,14 @@
6474
* tags={"auth"},
6575
* summary="Login Authentication",
6676
* description="Log in the user",
77+
*
6778
* @OA\RequestBody(
79+
*
6880
* @OA\MediaType(
6981
* mediaType="application/json",
82+
*
7083
* @OA\Schema(
84+
*
7185
* @OA\Property(
7286
* property="email",
7387
* type="string",
@@ -86,6 +100,7 @@
86100
* )
87101
* )
88102
* ),
103+
*
89104
* @OA\Response(response=200, description="Successful operation"),
90105
* @OA\Response(response=400, description="Bad request"),
91106
* @OA\Response(response=401, description="Unauthorized"),
@@ -100,6 +115,7 @@
100115
* tags={"auth"},
101116
* summary="Logout",
102117
* description="Log out the current user",
118+
*
103119
* @OA\Response(response=200, description="Successful operation"),
104120
* @OA\Response(response=400, description="Bad request"),
105121
* @OA\Response(response=401, description="Unauthorized"),
@@ -116,10 +132,14 @@
116132
* tags={"auth"},
117133
* summary="Resend the verification token",
118134
* description="Request the server to resend the verification token",
135+
*
119136
* @OA\RequestBody(
137+
*
120138
* @OA\MediaType(
121139
* mediaType="application/json",
140+
*
122141
* @OA\Schema(
142+
*
123143
* @OA\Property(
124144
* property="email",
125145
* type="string",
@@ -128,6 +148,7 @@
128148
* )
129149
* )
130150
* ),
151+
*
131152
* @OA\Response(response=200, description="Successful operation"),
132153
* @OA\Response(response=400, description="Bad request"),
133154
* @OA\Response(response=401, description="Unauthorized"),
@@ -144,6 +165,7 @@
144165
* tags={"auth"},
145166
* summary="Refresh Token for Authentication",
146167
* description="Request the jwt refresh token",
168+
*
147169
* @OA\Response(response=200, description="Successful operation"),
148170
* @OA\Response(response=400, description="Bad request"),
149171
* @OA\Response(response=401, description="Unauthorized"),
@@ -160,10 +182,14 @@
160182
* tags={"auth"},
161183
* summary="User Registration",
162184
* description="Register the user",
185+
*
163186
* @OA\RequestBody(
187+
*
164188
* @OA\MediaType(
165189
* mediaType="application/json",
190+
*
166191
* @OA\Schema(
192+
*
167193
* @OA\Property(
168194
* property="name",
169195
* type="string",
@@ -192,6 +218,7 @@
192218
* )
193219
* )
194220
* ),
221+
*
195222
* @OA\Response(response=200, description="Successful operation"),
196223
* @OA\Response(response=400, description="Bad request"),
197224
* @OA\Response(response=401, description="Unauthorized"),
@@ -206,10 +233,14 @@
206233
* tags={"auth"},
207234
* summary="User Reset Password",
208235
* description="Send reset password request",
236+
*
209237
* @OA\RequestBody(
238+
*
210239
* @OA\MediaType(
211240
* mediaType="application/json",
241+
*
212242
* @OA\Schema(
243+
*
213244
* @OA\Property(
214245
* property="email",
215246
* type="string",
@@ -223,6 +254,7 @@
223254
* )
224255
* )
225256
* ),
257+
*
226258
* @OA\Response(response=200, description="Successful operation"),
227259
* @OA\Response(response=400, description="Bad request"),
228260
* @OA\Response(response=401, description="Unauthorized"),
@@ -239,10 +271,14 @@
239271
* tags={"auth"},
240272
* summary="Get User Info",
241273
* description="Get the current user information",
274+
*
242275
* @OA\RequestBody(
276+
*
243277
* @OA\MediaType(
244278
* mediaType="application/json",
279+
*
245280
* @OA\Schema(
281+
*
246282
* @OA\Property(
247283
* property="email",
248284
* type="string",
@@ -256,6 +292,7 @@
256292
* )
257293
* )
258294
* ),
295+
*
259296
* @OA\Response(response=200, description="Successful operation"),
260297
* @OA\Response(response=400, description="Bad request"),
261298
* @OA\Response(response=401, description="Unauthorized"),

app/Http/Swagger/swagger_models/settings/badaso.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
* version="1.0.0",
77
* title="Badaso API Documentation",
88
* termsOfService="http://swagger.io/terms/",
9+
*
910
* @OA\Contact(
1011
* email="hello@uatech.co.id"
1112
* ),
13+
*
1214
* @OA\License(
1315
* name="Apache 2.0",
1416
* url="http://www.apache.org/licenses/LICENSE-2.0.html"

0 commit comments

Comments
 (0)