This commit is contained in:
2023-03-08 09:16:04 +08:00
commit e78454540f
1318 changed files with 210569 additions and 0 deletions

27
app/Models/Model.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use App\Traits\Macroable;
use Encore\Admin\Traits\DefaultDatetimeFormat;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Model extends Eloquent
{
use DefaultDatetimeFormat,
Macroable;
/**
* 禁止批量写入的字段
*
* @var array
*/
protected $guarded = [];
/**
* 修改模型默认分页数量为了配合API端使用的
*
* @var int
*/
protected $perPage = 10;
}