engelsystem/db/factories/User/PasswordResetFactory.php

23 lines
457 B
PHP

<?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; // phpcs:ignore
/**
* @return array
*/
public function definition(): array
{
return [
'token' => bin2hex(random_bytes(16)),
];
}
}