codelayer / laravel-student-validator
Validate educational email addresses for student status verification.
v1.0.0
2020-02-11 10:57 UTC
Requires
- php: ^7.2
- ext-json: *
- egulias/email-validator: ^2.1
- illuminate/support: ^5.8|^6.0|^7.0
- jeremykendall/php-domain-parser: ^5.6
Requires (Dev)
- phpunit/phpunit: ~8.0
This package is auto-updated.
Last update: 2024-11-11 21:52:27 UTC
README
This package can be used to validate college and university student's email addresses.
You can install the package using composer:
composer require codelayer/laravel-student-validator
Translations
If you wish to customize the package's translation, you can publish the translation files:
php artisan vendor:publish --provider="Codelayer\StudentValidator\StudentValidatorServiceProvider"
Usage
Simply use the StudentEmail
rule inside your rules array, e.g. in a form request:
use Codelayer\StudentValidator\Rules\StudentEmail; public function rules() { return [ 'email' => ['required', 'email', new StudentEmail()], ]; }
About Us
codelayer is a web development agency based in Karlsruhe, Germany. This package was developed for use in our product likvi.
License
The MIT License (MIT).