PHPackages                             uptoolkit/laravel-categories - 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. [Framework](/categories/framework)
4. /
5. uptoolkit/laravel-categories

ActiveLibrary[Framework](/categories/framework)

uptoolkit/laravel-categories
============================

Associate Eloquent Models with Categories

1.0.0(2y ago)01431MITPHPPHP &gt;=7.1.0

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/uptoolkit/laravel-categories)[ Packagist](https://packagist.org/packages/uptoolkit/laravel-categories)[ RSS](/packages/uptoolkit-laravel-categories/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Laravel Categories
==================

[](#laravel-categories)

[![Build Status](https://camo.githubusercontent.com/694272620efd57a388915a5fe4b4c13129f04f6c806e75b9f78c345c4508f30b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6661757374627269616e2f4c61726176656c2d43617465676f726965732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/faustbrian/Laravel-Categories)![PHP from Packagist](https://camo.githubusercontent.com/f90f02d6044fc45fb2de918d9705ab7afe9d5078a157b2bbe7f90ce3b9d24484/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6661757374627269616e2f6c61726176656c2d63617465676f726965732e7376673f7374796c653d666c61742d737175617265)[![Latest Version](https://camo.githubusercontent.com/8dca123a9987eb9f476b3cc611f08a7e56d2bf472d0ed0681eb4c7930ffcb3d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6661757374627269616e2f4c61726176656c2d43617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://github.com/faustbrian/Laravel-Categories/releases)[![License](https://camo.githubusercontent.com/cec84802619923bcddd154d9cdf44d780d247ad29417da2f0dcee7a4e499b143/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6661757374627269616e2f4c61726176656c2d43617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/faustbrian/Laravel-Categories)

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
$ composer require uptoolkit/laravel-categories
```

To get started, you'll need to publish the vendor assets and migrate:

```
php artisan vendor:publish --provider="Uptoolkit\Categories\CategoriesServiceProvider" && php artisan migrate

```

Usage
-----

[](#usage)

Nested Sets
-----------

[](#nested-sets)

Check [lazychaser/laravel-nestedset](https://github.com/lazychaser/laravel-nestedset) to learn how to create, update, delete, etc. categories.

Setup a Model
-------------

[](#setup-a-model)

```
