O'Reilly logo
  • GIL EG thinks this is interesting:

 <?php

  namespace App;

  class Book extends Model {

      protected $table = 'books'';

      protected function getDateFormat()
      {
          // returining a different timestamp format!
          return 'd/m/Y';
      }

  

From

Cover of Learning Laravel's Eloquent

Note

modify time format from the model