Files
water_new/app/Models/Model.php
2023-03-08 09:16:04 +08:00

28 lines
482 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
}