1234567891011121314151617 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Mead
- * Date: 2019/9/21
- * Time: 3:29 PM
- */
- namespace App\Models;
- class BikeMongo extends \Jenssegers\Mongodb\Eloquent\Model
- {
- protected $connection = 'mongodb';
- protected $primaryKey = 'id'; //设置主键
- protected $table = 'bikes';
- protected $guarded = [];
- }
|