From bc7ff4f5e77d7c6849a17b29a6f86e4335955bdb Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 31 Oct 2023 20:54:39 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- laravel/config/database.php | 2 +- laravel/config/hashing.php | 2 ++ laravel/config/mail.php | 1 + src/Factories/UserFactory.php | 5 ++++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/laravel/config/database.php b/laravel/config/database.php index 137ad18ce..8cd8ed076 100644 --- a/laravel/config/database.php +++ b/laravel/config/database.php @@ -53,7 +53,7 @@ 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', - 'collation' => 'utf8mb4_unicode_ci', + 'collation' => null, 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, diff --git a/laravel/config/hashing.php b/laravel/config/hashing.php index bcd3be4c2..d7c4206ae 100644 --- a/laravel/config/hashing.php +++ b/laravel/config/hashing.php @@ -30,6 +30,7 @@ 'bcrypt' => [ 'rounds' => env('BCRYPT_ROUNDS', 10), + 'verify' => true, ], /* @@ -47,6 +48,7 @@ 'memory' => 65536, 'threads' => 1, 'time' => 4, + 'verify' => true, ], ]; diff --git a/laravel/config/mail.php b/laravel/config/mail.php index e652bd025..d7416b152 100644 --- a/laravel/config/mail.php +++ b/laravel/config/mail.php @@ -59,6 +59,7 @@ 'postmark' => [ 'transport' => 'postmark', + // 'message_stream_id' => null, // 'client' => [ // 'timeout' => 5, // ], diff --git a/src/Factories/UserFactory.php b/src/Factories/UserFactory.php index 9843486a9..ceea1370a 100644 --- a/src/Factories/UserFactory.php +++ b/src/Factories/UserFactory.php @@ -4,6 +4,7 @@ use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Foundation\Auth\User; +use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; /** @@ -15,6 +16,8 @@ */ class UserFactory extends Factory { + protected static ?string $password; + /** * Define the model's default state. * @@ -26,7 +29,7 @@ public function definition(): array 'name' => fake()->name(), 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), - 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'password' => static::$password ??= Hash::make('password'), 'remember_token' => Str::random(10), ]; }