1
0
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:
Kovah 2020-03-10 09:44:37 +01:00
parent 73185f5344
commit b0b9873ba5
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B

View File

@ -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),
];
});