goszowski/stop-ru-email

1.0.1 2017-05-22 10:28 UTC

This package is auto-updated.

Last update: 2024-05-08 06:25:16 UTC


README

The extencion of Laravel-validation. Use this if you do not wish to receive emails from Russian domain zones.

Installation

  1. Require this package in your composer.json and run composer update :

     "goszowski/stop-ru-email": "1.*"
    
  2. After composer update, add service providers to the config/app.php

    Goszowski\StopRuEmail\ServiceProvider::class,   
    
  3. Run

    php artisan vendor:publish
    

Use

By template, in Your controller, use "not_ru_email" rule:

$this->validate($request, [
   'email' => 'not_ru_email',
]);