Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel carbon 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 #carbon #date #format
ADD COMMENT
Topic
Name
2+4 =