Answers for "laravel validate data formart"

PHP
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
0

laravel validation

Rule::unique('users')->ignore($user->id, 'user_id')
Posted by: Guest on December-25-2020

Browse Popular Code Answers by Language