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