Answers for "laravel validate numbers"

PHP
2

numbric validate laravel

$rules = ['Fno' => 'numeric|min:2|max:5', 'Lno' => 'numeric|min:2'];
Posted by: Guest on November-01-2020
4

laravel validation numeric vs integer

Integer is like a whole number without fraction: 2, 256, 2048
  
Numeric is any number including floating point numbers: 2.478, +0123.45e6
Posted by: Guest on March-02-2021
9

laravel validator make custom message

$rules = [
        'name' => 'required',
        'email' => 'required|email',
        'message' => 'required|max:250',
    ];

    $customMessages = [
        'required' => 'The :attribute field is required.'
    ];

    $this->validate($request, $rules, $customMessages);
Posted by: Guest on May-06-2020

Browse Popular Code Answers by Language