Answers for "laravel date validation"

PHP
2

laravel validation for mobile number

//inside laravel request rules(), add this for phone number varification
'phone' => 'required|min:11|numeric',
Posted by: Guest on December-21-2020
5

Date time format for laravel validation

$request->validate([
        'start_date' => 'date_format:d/m/Y',
        'end_date' => 'date_format:d/m/Y'
    ]);
Posted by: Guest on May-07-2020
1

laravel date validation

'dob' => 'required|date_format:Y-m-d|after_or_equal:1920-01-01'
Posted by: Guest on May-12-2021
1

datetime validation in laravel

return [
        'deadline' => 'required|date_format:Y-m-d H:i:s|after_or_equal:today',
    ];
Posted by: Guest on October-17-2021
8

if any error in blade laravel

@if ($errors->any())
     @foreach ($errors->all() as $error)
         <div>{{$error}}</div>
     @endforeach
 @endif
Posted by: Guest on November-01-2020
3

laravel validate date

'day'            =>  'required|date',
Posted by: Guest on January-25-2021

Code answers related to "laravel date validation"

Browse Popular Code Answers by Language