Skip to content

Commit

Permalink
Use Hash facade for StaffFactory default password (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong authored Jun 7, 2024
1 parent b9b2d95 commit f0a5920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/admin/database/factories/StaffFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Lunar\Admin\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
use Lunar\Admin\Models\Staff;

Expand All @@ -24,7 +25,7 @@ public function definition(): array
'admin' => $this->faker->boolean(5),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'password' => Hash::make('password'),
'remember_token' => Str::random(10),
];
}
Expand Down

0 comments on commit f0a5920

Please sign in to comment.