Consultant.php 364 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\model;
  3. use DateTimeInterface;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. use support\Model;
  6. class Consultant extends Model
  7. {
  8. use SoftDeletes;
  9. protected $table = 'consultant';
  10. protected $dateFormat = 'U';
  11. public function serializeDate(DateTimeInterface $date)
  12. {
  13. return $date->format('Y-m-d H:i:s');
  14. }
  15. }