Reduce docker api image size, fix issues

This commit is contained in:
Julien Nahum
2024-08-28 15:20:39 +02:00
parent 79d3dd7888
commit 2503595786
8 changed files with 989 additions and 992 deletions

View File

@@ -40,13 +40,11 @@ class ProfileController extends Controller
'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');

View File

@@ -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",
@@ -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,

1846
api/composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -236,9 +236,6 @@ test('make up a submission when polling without any submission', function () {
// Decode the response data
$responseData = $response->json()[0];
ray($responseData);
ray($responseData);
$this->assertNotEmpty($responseData['data']);
$this->assertTrue(count($responseData['data']) == 2);
});