. */ namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use App\AccountCreationToken; use App\Http\Controllers\Account\AuthenticateController as WebAuthenticateController; use Illuminate\Support\Carbon; class AccountCreationTokenFactory extends Factory { protected $model = AccountCreationToken::class; public function definition() { return [ 'pn_provider' => $this->faker->uuid, 'pn_param' => $this->faker->uuid, 'pn_prid' => $this->faker->uuid, 'token' => Str::random(WebAuthenticateController::$emailCodeSize), 'used' => false, 'created_at' => Carbon::now() ]; } }