Add toggle for homepage
This commit is contained in:
@@ -148,6 +148,11 @@ class Categories
|
||||
return self::update(['visible' => $visible], $id);
|
||||
}
|
||||
|
||||
public static function toggleHomepage($id, $homepage)
|
||||
{
|
||||
return self::update(['homepage' => $homepage], $id);
|
||||
}
|
||||
|
||||
public static function getRoot()
|
||||
{
|
||||
return app('rinvex.categories.category')->find(1);
|
||||
|
||||
Reference in New Issue
Block a user