hienning / taxonomy
v1.0.6
2015-07-19 13:33 UTC
Requires
- laravel/framework: >=5.0
This package is not auto-updated.
Last update: 2026-04-29 16:57:17 UTC
README
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 ... ;-)