承接 lotous-organization/laravel-login 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lotous-organization/laravel-login

最新稳定版本:v1.0.1

Composer 安装命令:

composer require lotous-organization/laravel-login

包简介

Simple laravel login

README 文档

README

This package provides a simple and secure login system for Laravel applications. It includes OTP verification and user authentication using Laravel Passport, with integration for Kavenegar for OTP sending and Sentry for error tracking.

Installation

To install the package, follow these steps:

  1. Install the package via Composer:

    composer require lotous-organization/laravel-login:"dev-master"
  2. Add the required environment variables to your .env file:

    # Constants for OTP settings
    OTP_TOKEN_EXPIRE_SECONDS=180
    OTP_TOKEN_NUM_DIGITS=6
    
    # Kavenegar API settings
    KAVENEGAR_API_KEY=""
    KAVENEGAR_TEMPLATE=""
    
    # Sentry configuration
    SENTRY_LARAVEL_DSN=""
    SENTRY_TRACES_SAMPLE_RATE=1.0
  3. Add the LoginServiceProvider class to the providers array in your config/app.php file:

    'providers' => [
        // Other Service Providers
        LotousOrganization\LaravelLogin\LoginServiceProvider::class,
    ],
  4. Run the migrations to set up the necessary database tables:

    php artisan migrate
  5. Configure Laravel Passport:

    php artisan passport:install

With these steps completed, your Laravel application is now equipped with a secure login system integrated with OTP verification.

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-09