27 lines
829 B
PHP
27 lines
829 B
PHP
<?php
|
|
|
|
namespace App\Models\YiiModels;
|
|
|
|
use App\Models\BaseAuthModel;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* App\Models\YiiModels\YiiBaseAuthModel
|
|
*
|
|
* @property-read string $created_at_format 创建时间的格式化
|
|
* @property-read string $updated_at_format 更新时间的格式化
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\YiiBaseAuthModel newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\YiiBaseAuthModel newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\YiiBaseAuthModel query()
|
|
* @mixin \Eloquent
|
|
*/
|
|
class YiiBaseAuthModel extends BaseAuthModel
|
|
{
|
|
protected $dateFormat = 'U';
|
|
|
|
public function getTable(): string
|
|
{
|
|
return $this->table ?? Str::snake(class_basename($this));
|
|
}
|
|
}
|