davaramyan/blacklist

Email Blacklist Package for Laravel 5.7

dev-master 2018-12-14 08:42 UTC

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.

MethodROUTEPARAMSSUCCESS RESPONSE
POST/blacklistemail{"status": "OK", "message": "Success."}
GET/blacklistemail{"status": "OK", "message": "Email exists."} / {"status": "OK", "message": "Email doesn't exist."}
DELETE/blacklist/{email}---{"status": "OK", "message": "Email deleted."}

License

MIT