davaramyan / blacklist
Email Blacklist Package for Laravel 5.7
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/davaramyan/blacklist
Requires
- laravel/framework: 5.7.*
Requires (Dev)
- orchestra/testbench: ^3.7
- phpunit/phpunit: ^7.4
This package is not auto-updated.
Last update: 2025-12-22 03:10:05 UTC
README
Package provides
- migration to create blacklist_emails table
- method to add new email to the list
- method to check if email is in the list
- method to remove email from the list
Installation
$ composer require davaramyan/blacklist
$ php artisan migrate blacklist_emails
Usage
The package comes with the routes listed below. All the methods return json responses.
| Method | ROUTE | PARAMS | SUCCESS RESPONSE |
|---|---|---|---|
| POST | /blacklist | {"status": "OK", "message": "Success."} | |
| GET | /blacklist | {"status": "OK", "message": "Email exists."} / {"status": "OK", "message": "Email doesn't exist."} | |
| DELETE | /blacklist/{email} | --- | {"status": "OK", "message": "Email deleted."} |
License
MIT