Skip to content

shanjiechen/voyager-taxonomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

996.icu LICENSE

voyager-taxonomy | 中文版

The Taxonomy manager and taxonomy custom field for laravel voyager.It can easily help you create and use categories. Based mainly on the nestedset. It has vocabulary and terms manager. And it used ztree.js, to create a treeview for crud taxonomy terms and can order terms by drap&drop.

1546511442739.jpg WX20190103-183142@2x.png

use

I don't recommend using it in a production environment. But I has use it in myself project. If u have ability to develop, You can try it out and welcome to the development.

  1. composer require shanjiechen/voyager-taxonomy
  2. php artisan voyager-taxonomy:install, this will create two tables taxonomy-vocabularies and taxonomy-terms
  3. php artisan vendor:publish, Publish ShanjieChen\VoyagerTaxonomy\VoyagerTaxonomyServiceProvider, this will publish voyager-taxonomy assets.
  4. To your voyager backend create BREAD of data tables taxonomy-vocabularies and taxonomy-terms, options like below:
    • taxonomy_vocabularies Model Name: ShanjieChen\VoyagerTaxonomy\Models\TaxonomyVocabulary
    • taxonomy_vocabularies Controller Name: \ShanjieChen\VoyagerTaxonomy\Http\Controllers\TaxonomyVocabularyController
    • taxonomy_terms Model Name: ShanjieChen\VoyagerTaxonomy\Models\TaxonomyTerm this will create menu automatic, remove taxonomy-terms menu, we will not use this.

In the future I'll call it seeders and write it into the installation command

  1. Register the routs of taxonomy in their routes file, for example:
Route::group(['prefix' => 'admin(or your custom voyager prefix)'], function () {
    Voyager::routes();
    \ShanjieChen\VoyagerTaxonomy\Facades\VoyagerTaxonomy::routes();
});

Try use it. Browse /admin (or your custom voyager prefix) /taxonomy-vocabularies

About

The Taxonomy manager for laravel voyager .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published