laravel-categories maintained by oleaass
Add categories to you Laravel models
The code uses polymorphic relations, which allows for simple but robust implementation of categories on any model you might have in your application.
Installation
$ composer require oleaass/laravel-categories
Usage
Prepare your model
use OleAass\Categories\HasCategories;
class Product extends Model
{
use Categorizable;
}
Support Me
I spend my free time making packages. So if you want to support me and my work, I would really appreciate if you bough me a coffee.