Category
class Category extends Model
Traits
Methods
static Collection
exceptFromSlugs(array $slugs)
Get all models except the given array of slugs.
from Slugable
static void
boot()
The "booting" method of the model.
static Builder
main()
Query the main categories.
Builder
childrens()
Query the main subcategories.
Builder
parent()
Query the parent category.
Builder
products()
Query the products.
Details
in Slugable at line 15
void
generateSlug(string $value)
Generate the slug.
in Slugable at line 32
static Collection
allFromSlugs(array $slugs)
Get the models from an array of slugs.
in Slugable at line 43
static Collection
exceptFromSlugs(array $slugs)
Get all models except the given array of slugs.
in Slugable at line 54
static bool
slugExists(string $slug)
Check if the slug already exists.
at line 17
static protected void
boot()
The "booting" method of the model.
at line 31
static Builder
main()
Query the main categories.
at line 41
Builder
childrens()
Query the main subcategories.
at line 51
Builder
parent()
Query the parent category.
at line 61
Builder
products()
Query the products.