refactor, better class namespace intergration
This commit is contained in:
@@ -22,12 +22,12 @@ class Category extends Model
|
||||
|
||||
public function Articles()
|
||||
{
|
||||
return $this->morphedByMany('App\Models\Shop\Article', 'categorizable');
|
||||
return $this->morphedByMany(Article::class, 'categorizable');
|
||||
}
|
||||
|
||||
public function Shelves()
|
||||
{
|
||||
return $this->morphedByMany('App\Models\Shop\Category', 'categorizable');
|
||||
return $this->morphedByMany(Category::class, 'categorizable');
|
||||
}
|
||||
|
||||
public function CategoryTree()
|
||||
|
||||
Reference in New Issue
Block a user