belongsTo('app\\common\\model\\branch\\Branch', 'branch_id', 'branch_id'); } /** * 详情 */ public static function detail($branch_id, $with = []) { return (new static())->with($with)->where('branch_id', '=', $branch_id)->findOrEmpty(); } }