You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GeekQu_sspanel/app/Models/Auto.php

21 lines
357 B
PHTML

9 years ago
<?php
namespace App\Models;
class Auto extends Model
{
protected $connection = 'default';
protected $table = 'auto';
9 years ago
public function datetime()
{
return date('Y-m-d H:i:s', $this->attributes['datetime']);
9 years ago
}
9 years ago
public function content()
{
return str_replace(PHP_EOL, '<br>', $this->attributes['value']);
}
}