Answers for "eloquent format dates"

PHP
0

laravel set date format

{{ $post->created_at->diffForHumans() }}
  /*
  	//Output
  Arya Stuck 14 minutes ago
  Post something 
  
  Mizan Khan 23 hours ago
  Post something
  */
Posted by: Guest on July-20-2021
0

laravel date format valdiate

'date_format:d/m/Y';
Posted by: Guest on March-18-2021

Browse Popular Code Answers by Language