12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Prettus\Repository\Contracts\Transformable;
- use Prettus\Repository\Traits\TransformableTrait;
- /**
- * Class Region.
- *
- * @package namespace App\Models;
- * @method static \Illuminate\Database\Eloquent\Builder|Region newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Region newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Region query()
- * @mixin \Eloquent
- * @property int $id
- * @property string $name 城市名称
- * @property int $level 城市层级
- * @property int $parent_id 父级ID
- * @property string $p_ids 族谱
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereLevel($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereName($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region wherePIds($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereParentId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Region whereUpdatedAt($value)
- */
- class Region extends Model implements Transformable
- {
- use TransformableTrait;
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|