Answers for "laravel get time format"

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

current time input field in laravel form

<input type="text" value="{{Carbon\Carbon::now()->format('Y-m-d')."T".Carbon\Carbon::now()->format('H:i')}}" />
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language