* @Date: 2019/11/19 3:01 下午 * @return mixed */ public function parent() { return $this->belongsTo(__CLASS__, 'parent_id'); } /** * Notes: 下级地区 * @Author: * @Date: 2019/11/19 3:01 下午 * @return mixed */ public function children() { return $this->hasMany(__CLASS__, 'parent_id'); } }