2021-06-29 00:27:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories\Engelsystem\Models\User;
|
|
|
|
|
|
|
|
use Engelsystem\Models\User\PasswordReset;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class PasswordResetFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
|
|
|
protected $model = PasswordReset::class;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2022-12-08 15:57:13 +01:00
|
|
|
'token' => bin2hex(random_bytes(16)),
|
2021-06-29 00:27:57 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|