davaramyan / blacklist
Email Blacklist Package for Laravel 5.7
dev-master
2018-12-14 08:42 UTC
Requires
- laravel/framework: 5.7.*
Requires (Dev)
- orchestra/testbench: ^3.7
- phpunit/phpunit: ^7.4
This package is not auto-updated.
Last update: 2024-09-29 20:58:32 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