Skip to content

feat: add config file, customizable table, and otp:install command - #41

Open
rkingbishnoi wants to merge 2 commits into
ichtrojan:masterfrom
rkingbishnoi:feature/config-and-otp-install-command
Open

feat: add config file, customizable table, and otp:install command#41
rkingbishnoi wants to merge 2 commits into
ichtrojan:masterfrom
rkingbishnoi:feature/config-and-otp-install-command

Conversation

@rkingbishnoi

Copy link
Copy Markdown

What this PR does

This PR adds new features and improvements to the ichtrojan/laravel-otp package to enhance flexibility and developer experience.


Features Added

  • Config File (config/otp.php)
    Allows users to customize:

    • Table name
    • OTP length
    • Validity in minutes
    • Max attempts (future use)
  • Migration Stub Support
    Migration file now uses the config-defined table name. Developers can publish and modify the migration before running it.

  • New Artisan Command: otp:install
    A convenient one-step install command that publishes both the config and migration file with success feedback:

    php artisan otp:install

@fanfigo fanfigo mentioned this pull request Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant