About 1,520,000 results
Open links in new tab
  1. How to write custom validation rule in controller Laravel?

    If you only need to perform a custom validation once in a specific part of your code, using the add method of the validator is a simple way to achieve it. This will be more useful when you have a …

  2. Laravel 5.6 $this->validate vs Validator::make () - Stack Overflow

    Jul 5, 2018 · In summary, this only helps you incase you don't want to do manual validation by creating an instance of Validator, so to keep the developer focus on doing the real work ;)

  3. Extending/Overriding Laravel Validator Class - Stack Overflow

    Mar 9, 2021 · Would it be possible to implement these in Laravel 7 by extending/overiding the Validator.php class? I've been researching about extending core Laravel classes and stumbled …

  4. List of Laravel validation rules - Stack Overflow

    Nov 9, 2017 · Is there a master list of all available rules for Laravel request validation? I have only seen the ones shown in the docs, but there must be more than just 4-5 rules. I know I can make custom …

  5. Laravel IN Validation or Validation by ENUM Values

    Mar 11, 2015 · Laravel IN Validation or Validation by ENUM Values Asked 10 years, 9 months ago Modified 1 year, 2 months ago Viewed 179k times

  6. Adding custom validation errors to Laravel form - Stack Overflow

    There is one problem with the accepted answer (and Laravel's Validator in general, in my opinion) - the validation process itself and validation status detection is merged into one method.

  7. Displaying the Error Messages in Laravel after being Redirected from ...

    Nov 4, 2014 · Learn how to display error messages in Laravel after being redirected from a controller.

  8. php - Laravel: validate an integer field that needs to be greater than ...

    Aug 16, 2015 · The question was asked in 2015 so most of the answers are also outdated now. I want to give an answer that uses features provided by the Laravel team which is included in it's new version. …

  9. Validation of an email address in Laravel - Stack Overflow

    Jan 20, 2022 · 7 In Laravel 10: Try doing: 'email' => ['required', 'email:rfc,dns'], Laravel uses the rfc5322 standard for email validation, which is based on RFC 5322. This standard defines the syntax for …

  10. php - Custom Laravel validation messages - Stack Overflow

    Jul 10, 2017 · This was the easiest for me as I was pressed for time and needed to do this in only one place. It is quite handy but if you are going to need custom messages in a number of places, it would …