jeudi 22 septembre 2016

Laravel 5 & validating multiple email addresses in a single field

I know in Laravel you can setup validation rules for input fields, for example:

    $return =  [
        'first_name' => 'required|max:300|min:3',
        'last_name' => 'required|max:300|min:3',
        'email' => 'required|email,
    ];

Is there a way to easily set this kind of validation for a single field with comma separated email addresses (test@email.com, wibble@test.com) or do I need to manually validate these by splitting them apart and checking each email address individually?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire