Skip to content

Commit

Permalink
.gitattributes filename fix
Browse files Browse the repository at this point in the history
composesr.json typo fix
MongoDb migrations fix
Readme fixes
  • Loading branch information
alexeygeno committed Aug 8, 2023
1 parent 26b7942 commit 1e60059
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitatttributes → .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.github export-ignore
tests export-ignore
phpunit.xml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
tests export-ignore
phpunit.xml export-ignore
phpstan.neon.dist export-ignore
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ php artisan phone-verification:complete --to=+15417543010 --otp=1234
```
#### Routes
```shell
curl -d "to=+380935259282" localhost/phone-verification/initiate
curl -d "to=+15417543010" localhost/phone-verification/initiate
#{"ok":true,"message":"Sms has been sent. Check your Phone!"}
```
```shell
curl -d "to=+380935259282&otp=1234" localhost/phone-verification/complete
curl -d "to=+15417543010&otp=1234" localhost/phone-verification/complete
#{"ok":true,"message":"The verification is done!"}
```
**Note**: The package routes are available by default. To make them unavailable without redefining the service provider, change the bool key **phone-verification.sender.to_log** in the configuration
Expand All @@ -77,7 +77,7 @@ To switch between [available](#requirements) storages and notifications channels

For example, to use **Mongodb** as a storage and **Twilio** as a notification channel:
```shell
composer require jenssegers/laravel-mongodb laravel-notification-channels/twilio
composer require jenssegers/mongodb laravel-notification-channels/twilio
```
```dotenv
PHONE_VERIFICATION_SENDER=twilio
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "alexgeno/phone-verification-laravel",
"description":"A Laravel library to verify a phone via notification channels. Any notification channel can be used as a sender. Redis(predis) or MongoDb can be used a storage.",
"type": "library",
"keywords":["otp","phone", "verification", "verify", "sms", "call", "2fa", "2factor","authentication", "signin",
"keywords":["phone", "verification", "verify", "sms", "2fa", "2factor","authentication", "signin",
"signup", "redis", "mongo", "mongodb", "verify-by-phone", "otp", "notification", "notification-channel",
"twilio", "messagebird", "vonage", "touch-sms", "clickatell", "jusibe", "smsc-ru", "authy", "cmsms", "46elks",
"sipgate", "all-my-sms", "smspoh", "turbosms", "vodafone", "africastalking", "sms77", "smsapi", "sms-broadcast"
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"suggest": {
"predis/predis": "required to use Redis as a storage",
"enssegers/mongodb": "required to use MongoDB as a storage",
"jenssegers/mongodb": "required to use MongoDB as a storage",
"laravel-notification-channels/messagebird": "required to use Messagebird as a sender's notification channel",
"laravel-notification-channels/twilio": "required to use Twilio as a sender's notification channel",
"laravel/vonage-notification-channel": "required to use Vonage as a sender's notification channel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public function __construct()
{
$this->collectionName = config('phone-verification.storage.mongodb.collection_session');
$this->collectionName = config('phone-verification.storage.mongodb.settings.collection_session');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public function __construct()
{
$this->collectionName = config('phone-verification.storage.mongodb.collection_session');
$this->collectionName = config('phone-verification.storage.mongodb.settings.collection_session');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public function __construct()
{
$this->collectionName = config('phone-verification.storage.mongodb.collection_session_counter');
$this->collectionName = config('phone-verification.storage.mongodb.settings.collection_session_counter');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public function __construct()
{
$this->collectionName = config('phone-verification.storage.mongodb.collection_session_counter');
$this->collectionName = config('phone-verification.storage.mongodb.settings.collection_session_counter');
}

/**
Expand Down

0 comments on commit 1e60059

Please sign in to comment.