Skip to content

Commit

Permalink
Reduce docker api image size, fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Aug 28, 2024
1 parent 79d3dd7 commit 2503595
Show file tree
Hide file tree
Showing 8 changed files with 1,120 additions and 1,123 deletions.
2 changes: 0 additions & 2 deletions api/app/Http/Controllers/Settings/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ public function updateAdminCredentials(Request $request)
'password.not_in' => "Please another password other than 'password'."
]);

ray('in', $request->password);
$user = $request->user();
$user->update([
'email' => $request->email,
'password' => bcrypt($request->password),
]);
ray($user);

Cache::forget('initial_user_setup_complete');
Cache::forget('max_user_id');
Expand Down
6 changes: 3 additions & 3 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"stevebauman/purify": "*",
"tymon/jwt-auth": "*",
"vinkla/hashids": "*",
"fakerphp/faker": "^1.23"
"fakerphp/faker": "^1.23",
"spatie/laravel-ray": "*"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.0.0",
Expand All @@ -50,8 +51,7 @@
"nunomaduro/collision": "*",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.4",
"spatie/laravel-ignition": "*",
"spatie/laravel-ray": "*"
"spatie/laravel-ignition": "*"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 2503595

Please sign in to comment.