初始化项目
This commit is contained in:
26
app/Models/YiiModels/YiiBaseAuthModel.php
Normal file
26
app/Models/YiiModels/YiiBaseAuthModel.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user