mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-03-14 19:59:38 +01:00
The user factory should also generate an api token
This commit is contained in:
parent
73185f5344
commit
b0b9873ba5
@ -8,6 +8,6 @@ $factory->define(App\Models\User::class, function (Faker $faker) {
|
||||
'name' => $faker->userName,
|
||||
'email' => $faker->unique()->safeEmail,
|
||||
'password' => '$2y$10$9.preebMjZ.8obdvk5ZVdOCw7Cq1EJm6i1B1RJevxCXYW0lUiwDJG', // secretpassword
|
||||
'remember_token' => Str::random(10),
|
||||
'api_token' => Str::random(32),
|
||||
];
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user