MCQs > Website Designing & Development > Laravel Framework > Use a validation rules inside the custom validation class?

Laravel Framework MCQs

Use a validation rules inside the custom validation class?

Answer

Correct Answer: $emailsInput = Input::get('email'); $emails = explode(',', $emails); foreach($emails as $email) { $validator = Validator::make( ['email' => $email], ['email' => 'required|email'] ); if ($validator->fails()) { // There is an invalid email in the input

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it