$type, 'type_id' => $type_id, 'token' => $token, 'expire_at' => date('Y-m-d H:i:s', time() + 7200), ]); return $token; } }