Skip to content
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
tests
LICENSE
README.md
composer.json

README.md

Taxonomy

A taxonomy inspired by Drupal for Laravel 5. Lots of sql queries in this codebase were copied from Mike Hillyer's post.

Installation

composer require hienning/taxonomy

load the service in your config/app.php:

/*
 * Application Service Providers...
 */
'App\Providers\AppServiceProvider',
'App\Providers\BusServiceProvider',
'App\Providers\ConfigServiceProvider',
'App\Providers\EventServiceProvider',
'App\Providers\RouteServiceProvider',

'Hienning\Taxonomy\ServiceProvider',
...

How to use it

Preparation

1. Create the data table

artisan taxonomy:create-table [name]

where the 'name' is the table name which being created; or use 'taxonomy' by leaving this argument blank.

2. Inherit your model from Hienning\Taxonomy\Model

class Taxonomy extends \Hienning\Taxonomy\Model
{
    ...
};

To be continue ... ;-)

You can’t perform that action at this time.