| 12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * 描述
- * @auth nj911<nj-x@gmail.com>
- * @date: 2021-04-18 14:00
- */
- namespace App\Models\Mongo;
- use Jenssegers\Mongodb\Eloquent\Model;
- class BaseMongo extends Model
- {
- /**
- * 配置中的连接名.
- * @var string
- */
- public $connection = 'mongodb';
- /**
- * 不自动维护时间.
- * @var bool
- */
- public $timestamps = false;
- /**
- * 保护字段.
- * @var string[]
- */
- protected $guarded = ['_id'];
- }
|