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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #set #date #format
ADD COMMENT
Topic
Name
1+7 =