Skip to content

Basic Validation

Use the package rule with Laravel's normal request validation:

php
$request->validate([
    'email' => ['required', 'email', 'disposable_email'],
]);

The string form works too:

php
'email' => 'required|email|disposable_email',

disposable_email checks the domain against built-in and custom lists. Keep Laravel's email rule when you also want normal format validation, or use the package's RFC / DNS modes.

MIT License. Copyright Er Amit Gupta