Skip to content

Commit 10d4513

Browse files
committed
Update starter template to badaso 2.5.2
1 parent 1102412 commit 10d4513

33 files changed

+149
-11364
lines changed

.env.example

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
APP_NAME=Badaso
1+
APP_NAME=Laravel
22
APP_ENV=local
3-
APP_KEY=base64:m3kFjFIlHMY66yb+TCOH5/H/pXwPhOX/VXNH16TWiHk=
3+
APP_KEY=base64:VCHMu9h9fjxjyMZBtEEeY78bRhQraGg/jA08QP+AAjU=
44
APP_DEBUG=true
55
APP_SERVICE=badaso
66
APP_PORT=8000
@@ -19,7 +19,7 @@ DB_PASSWORD=password
1919

2020
BROADCAST_DRIVER=log
2121
CACHE_DRIVER=file
22-
FILESYSTEM_DISK=local
22+
FILESYSTEM_DISK=public
2323
QUEUE_CONNECTION=sync
2424
SESSION_DRIVER=file
2525
SESSION_LIFETIME=120
@@ -57,6 +57,7 @@ JWT_SECRET=
5757
BADASO_AUTH_TOKEN_LIFETIME=
5858
BADASO_LICENSE_KEY=
5959
ARCANEDEV_LOGVIEWER_MIDDLEWARE=
60+
MIX_BADASO_PLUGINS=
6061
MIX_DEFAULT_MENU=general
6162
MIX_BADASO_MENU=${MIX_DEFAULT_MENU}
6263
MIX_ADMIN_PANEL_ROUTE_PREFIX=badaso-dashboard
@@ -93,4 +94,4 @@ REDIS_CLIENT=predis
9394
WORKSPACE_PUID=1000
9495
WORKSPACE_PGID=1000
9596
WWWGROUP=1000
96-
WWWUSER=1000
97+
WWWUSER=1000

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ RUN sudo sudo mv composer.phar /usr/local/bin/composer
3030
RUN sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
3131
RUN sudo apt -y install nodejs
3232

33-
USER gitpod
33+
USER gitpod

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ vscode:
3131
- PKief.material-icon-theme
3232
- bmewburn.vscode-intelephense-client
3333
- MehediDracula.php-namespace-resolver
34-
- junstyle.php-cs-fixer
34+
- junstyle.php-cs-fixer

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: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,26 @@
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+
1019
/**
1120
* A list of the exception types that are not reported.
1221
*
13-
* @var array<int, class-string<Throwable>>
22+
* @var array<int, class-string<\Throwable>>
1423
*/
1524
protected $dontReport = [
1625
//
1726
];
1827

1928
/**
20-
* A list of the inputs that are never flashed for validation exceptions.
29+
* A list of the inputs that are never flashed to the session on validation exceptions.
2130
*
2231
* @var array<int, string>
2332
*/

app/Http/Swagger/swagger_models/auth.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,20 @@
264264
* security={{"bearerAuth" : {}}}
265265
* )
266266
*/
267+
268+
/**
269+
* @OA\Get(
270+
* path="/v1/auth/user",
271+
* operationId="User",
272+
* tags={"auth"},
273+
* summary="Get User",
274+
* description="Get the current user information",
275+
*
276+
* @OA\Response(response=200, description="Successful operation"),
277+
* @OA\Response(response=400, description="Bad request"),
278+
* @OA\Response(response=401, description="Unauthorized"),
279+
* @OA\Response(response=402, description="Payment Required"),
280+
*
281+
* security={{"bearerAuth" : {}}}
282+
* )
283+
*/

app/Providers/AuthServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class AuthServiceProvider extends ServiceProvider
99
{
1010
/**
11-
* The policy mappings for the application.
11+
* The model to policy mappings for the application.
1212
*
1313
* @var array<class-string, class-string>
1414
*/

app/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class EventServiceProvider extends ServiceProvider
1111
{
1212
/**
13-
* The event listener mappings for the application.
13+
* The event to listener mappings for the application.
1414
*
1515
* @var array<class-string, array<int, class-string>>
1616
*/

app/Providers/RouteServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class RouteServiceProvider extends ServiceProvider
1313
/**
1414
* The path to the "home" route for your application.
1515
*
16-
* This is used by Laravel authentication to redirect users after login.
16+
* Typically, users are redirected here after authentication.
1717
*
1818
* @var string
1919
*/
2020
public const HOME = '/home';
2121

2222
/**
23-
* Define your route model bindings, pattern filters, etc.
23+
* Define your route model bindings, pattern filters, and other route configuration.
2424
*
2525
* @return void
2626
*/
@@ -29,8 +29,8 @@ public function boot()
2929
$this->configureRateLimiting();
3030

3131
$this->routes(function () {
32-
Route::prefix('api')
33-
->middleware('api')
32+
Route::middleware('api')
33+
->prefix('api')
3434
->group(base_path('routes/api.php'));
3535

3636
Route::middleware('web')

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "laravel/laravel",
2+
"name": "badaso/starter",
33
"type": "project",
4-
"description": "The Laravel Framework.",
4+
"description": "Badaso starter project.",
55
"keywords": ["framework", "laravel"],
66
"license": "MIT",
77
"require": {
88
"php": "^8.0.2",
9-
"badaso/core": "^2.4",
9+
"badaso/core": "^2.5",
1010
"guzzlehttp/guzzle": "^7.2",
11-
"laravel/framework": "^9.2",
12-
"laravel/octane": "^1.2",
11+
"laravel/framework": "^9.11",
12+
"laravel/octane": "^1.3",
1313
"laravel/sanctum": "^2.14.1",
1414
"laravel/tinker": "^2.7"
1515
},

0 commit comments

Comments
 (0)