-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from frontChapter/develop
feat: :sparkles disable dispasable emails register
- Loading branch information
Showing
7 changed files
with
155 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| JSON Source URLs | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The source URLs yielding a list of disposable email domains. Change these | ||
| to whatever source you like. Just make sure they all return a JSON array. | ||
| | ||
| A sensible default is provided using jsDelivr's services. jsDelivr is | ||
| a free service, so there are no uptime or support guarantees. | ||
| | ||
*/ | ||
|
||
'sources' => [ | ||
'https://cdn.jsdelivr.net/gh/disposable/disposable-email-domains@master/domains.json' | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Fetch class | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The class responsible for fetching the contents of the source url. | ||
| The default implementation makes use of file_get_contents and | ||
| json_decode and will probably suffice for most applications. | ||
| | ||
| If your application has different needs (e.g. behind a proxy) then you | ||
| can define a custom fetch class here that carries out the fetching. | ||
| Your custom class should implement the Fetcher contract. | ||
| | ||
*/ | ||
|
||
'fetcher' => \Propaganistas\LaravelDisposableEmail\Fetcher\DefaultFetcher::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Storage Path | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The location where the retrieved domains list should be stored locally. | ||
| The path should be accessible and writable by the web server. A good | ||
| place for storing the list is in the framework's own storage path. | ||
| | ||
*/ | ||
|
||
'storage' => storage_path('framework/disposable_domains.json'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Cache Configuration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define whether the disposable domains list should be cached. | ||
| If you disable caching or when the cache is empty, the list will be | ||
| fetched from local storage instead. | ||
| | ||
| You can optionally specify an alternate cache connection or modify the | ||
| cache key as desired. | ||
| | ||
*/ | ||
|
||
'cache' => [ | ||
'enabled' => true, | ||
'store' => 'default', | ||
'key' => 'disposable_email:domains', | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.