| | |
| | | public function logoImage() |
| | | { |
| | | $model = self::getCalledModule() ?: 'common'; |
| | | return $this->hasOne("app\\$model\\model\\file\\UploadFile", 'file_id', 'logo')->bind(['file_path']); |
| | | return $this->hasOne("app\\$model\\model\\file\\UploadFile", 'file_id', 'logo'); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | $model = self::getCalledModule() ?: 'common'; |
| | | return $this->hasOne("app\\$model\\model\\plus\\business\\Grade", 'grade_id', 'grade_id'); |
| | | } |
| | | public function industry() |
| | | { |
| | | $model = self::getCalledModule() ?: 'common'; |
| | | return $this->hasOne("app\\$model\\model\\plus\\business\\Industry", 'industry_id', 'industry_id'); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static function detail($business_card_id) |
| | | { |
| | | return (new self())->with(['user', 'image', 'logoImage', 'grade'])->where(['business_card_id' => $business_card_id])->find(); |
| | | return (new self())->with(['user', 'image', 'logoImage', 'grade', 'industry'])->where(['business_card_id' => $business_card_id])->find(); |
| | | } |
| | | } |