PHPackages                             bvkdev/categorizable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bvkdev/categorizable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bvkdev/categorizable
====================

Implement the ability to categorize for custom models

01PHP

Since Dec 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/BehroozBvk/Categorizable)[ Packagist](https://packagist.org/packages/bvkdev/categorizable)[ RSS](/packages/bvkdev-categorizable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Categorizable Package
=====================

[](#categorizable-package)

This Package enables you to Categorize your Eloquent Models. just use the trait in the model and you're good to go.

### Requirements

[](#requirements)

- PHP 7.2+
- Laravel 7+

Installation
------------

[](#installation)

```
composer require bvkdev/categorizable

```

#### Publish and Run the migrations

[](#publish-and-run-the-migrations)

```
php artisan vendor:publish --provider="BvkDev\Categorizable\CategorizableServiceProvider"

php artisan migrate
```

Laravel Categorizable package will be auto-discovered by Laravel. and if not: register the package in config/app.php providers array manually.

```
'providers' => [
	...
	BvkDev\Categorizable\CategorizableServiceProvider::class,
],
```

#### Setup models - just use the Trait in the Model.

[](#setup-models---just-use-the-trait-in-the-model)

```
