Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 31, 2023
1 parent eeb576a commit bc7ff4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion laravel/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions laravel/config/hashing.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 10),
'verify' => true,
],

/*
Expand All @@ -47,6 +48,7 @@
'memory' => 65536,
'threads' => 1,
'time' => 4,
'verify' => true,
],

];
1 change: 1 addition & 0 deletions laravel/config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => null,
// 'client' => [
// 'timeout' => 5,
// ],
Expand Down
5 changes: 4 additions & 1 deletion src/Factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

/**
Expand All @@ -15,6 +16,8 @@
*/
class UserFactory extends Factory
{
protected static ?string $password;

/**
* Define the model's default state.
*
Expand All @@ -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),
];
}
Expand Down

0 comments on commit bc7ff4f

Please sign in to comment.