PHPackages                             trexology5/taxonomy5 - 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. trexology5/taxonomy5

ActiveLibrary

trexology5/taxonomy5
====================

Create and manage a heirarchical taxonomy of terms within different vocabularies

5.0.0(3y ago)016MITPHPPHP &gt;=5.4

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Serokuz22/tax_laravel7)[ Packagist](https://packagist.org/packages/trexology5/taxonomy5)[ RSS](/packages/trexology5-taxonomy5/feed)WikiDiscussions fix\_laravel\_7 Synced 4w ago

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

[![Build Status](https://camo.githubusercontent.com/c8f0cfbf15aa16fd831a994aa2702f3c1056f443152f6851d2c3b9d4e0a51e5c/68747470733a2f2f7472617669732d63692e6f72672f446576466163746f727943482f7461786f6e6f6d792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DevFactoryCH/taxonomy)[![Latest Stable Version](https://camo.githubusercontent.com/6cbe5d58e6ec1f9590fa6e6f678ffeb2fce0de431d6476345be599bdaa2bc5fb/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f762f737461626c652e737667)](https://packagist.org/packages/trexology/taxonomy)[![Total Downloads](https://camo.githubusercontent.com/3439eb17007e70f4f0dc604ccb03533b30922fcb0effeaa1ad8a2c2dcfc7f407/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f646f776e6c6f6164732e737667)](https://packagist.org/packages/trexology/taxonomy)[![License](https://camo.githubusercontent.com/710c52e6b9532c3e88f8bec6f1dfed1c611a9e4d6fb7a416916502922bcaf3ba/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f6c6963656e73652e737667)](https://packagist.org/packages/trexology/taxonomy)

\#Taxonomy

This package allows you to create vocabularies with terms in Laravel 4 and 5

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

[](#installation)

### Laravel 5

[](#laravel-5)

In your `composer.json` add:

```
"require": {
	"trexology/taxonomy": "3.*"
}

```

From the terminal run

```
composer update

```

Then register the service provider and Facade by opening `app/config/app.php`

(Skip this step if you are on laravel 5.5)

```
'Trexology\Taxonomy\TaxonomyServiceProvider',

'Taxonomy'        => 'Trexology\Taxonomy\Facades\TaxonomyFacade',
```

Then run the following artisant command to publish the config and migrations:

```
php artisan vendor:publish

```

Then run the migrations:

```
php artisan migrate

```

And finally in any of the Models where you want to use the Taxonomy functionality, add the following trait:

```
