hienning / taxonomy
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/hienning/taxonomy
Requires
- laravel/framework: >=5.0
This package is not auto-updated.
Last update: 2025-12-24 15:32:08 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 ... ;-)