@@ -2,8 +2,8 @@ |
||
2 | 2 | namespace UniSharp\Categorizable; |
3 | 3 | |
4 | 4 | use Illuminate\Database\Eloquent\Builder; |
5 | -use UniSharp\Categorizable\Models\Category; |
|
6 | 5 | use Illuminate\Database\Eloquent\Relations\MorphToMany; |
6 | +use UniSharp\Categorizable\Models\Category; |
|
7 | 7 | |
8 | 8 | trait Categorizable |
9 | 9 | { |
@@ -77,5 +77,8 @@ |
||
77 | 77 | |
78 | 78 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $relations |
|
82 | + */ |
|
80 | 83 | abstract public function load($relations); |
81 | 84 | } |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace UniSharp\Categorizable\Models; |
4 | 4 | |
5 | -use Kalnoy\Nestedset\NodeTrait; |
|
6 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | +use Kalnoy\Nestedset\NodeTrait; |
|
7 | 7 | |
8 | 8 | class Category extends Model |
9 | 9 | { |