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.
21 lines
357 B
PHP
21 lines
357 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Auto extends Model
|
|
{
|
|
protected $connection = 'default';
|
|
protected $table = 'auto';
|
|
|
|
|
|
public function datetime()
|
|
{
|
|
return date('Y-m-d H:i:s', $this->attributes['datetime']);
|
|
}
|
|
|
|
public function content()
|
|
{
|
|
return str_replace(PHP_EOL, '<br>', $this->attributes['value']);
|
|
}
|
|
}
|