mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Use hash::
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
fe2cd8b708
commit
f3f6a04c43
|
@ -4,6 +4,7 @@ namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
|
||||||
|
|
||||||
class UserFactory extends Factory
|
class UserFactory extends Factory
|
||||||
|
@ -22,7 +23,7 @@ class UserFactory extends Factory
|
||||||
*/
|
*/
|
||||||
public function definition()
|
public function definition()
|
||||||
{
|
{
|
||||||
$password = bcrypt('password');
|
$password = Hash::make('password');
|
||||||
return [
|
return [
|
||||||
'activated' => 1,
|
'activated' => 1,
|
||||||
'address' => $this->faker->address,
|
'address' => $this->faker->address,
|
||||||
|
|
Loading…
Reference in a new issue