|
...
|
...
|
@@ -16,7 +16,7 @@ class Keyword extends Base |
|
|
|
protected $appends = ['route'];
|
|
|
|
|
|
|
|
//连接数据库
|
|
|
|
// protected $connection = 'custom_mysql';
|
|
|
|
protected $connection = 'custom_mysql';
|
|
|
|
public function getRouteAttribute(){
|
|
|
|
return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id);
|
|
|
|
}
|
...
|
...
|
|