Answers for "date format in monday laravel"

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

2 days left format in laravel

$end = Carbon::parse($request->input('end_date'));

$current = Carbon::now();
$length = $end->diffInDays($current);
dd($length);
Posted by: Guest on August-21-2021

Browse Popular Code Answers by Language