Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel set date format

{{ $post->created_at->diffForHumans() }}
  /*
  	//Output
  Arya Stuck 14 minutes ago
  Post something 
  
  Mizan Khan 23 hours ago
  Post something
  */
Source by laraveldaily.com #
 
PREVIOUS NEXT
Tagged: #laravel #set #date #format
ADD COMMENT
Topic
Name
5+4 =