Answers for "Laravel DATETIME class"

PHP
5

datetime format laravel

//laravel method 1
{{ $data->created_at->isoFormat('dddd D') }}

//laravel method 2 
{!! date('d/M/y', strtotime($data->created_at)) !!}
Posted by: Guest on August-08-2020
0

date time laravel

'phone' => 'required|regex:/(01)[0-9]{9}/'
Posted by: Guest on October-24-2021

Browse Popular Code Answers by Language