Download the PHP package delatbabel/nestedcategories without Composer
On this page you can find all versions of the php package delatbabel/nestedcategories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download delatbabel/nestedcategories
More information about delatbabel/nestedcategories
Files in delatbabel/nestedcategories
Package nestedcategories
Short Description A Laravel 5 package for nested categories.
License MIT
Informations about the package nestedcategories
nestedcategories
A Laravel 5 package for adding one or more types of category hierarchy to a website.
e.g. a hierarchy for blog categories and another for product categories
This is a Laravel 5 reimplementation of Laravel 4 Categories
Comes with
- Migration for the
categories
table - Category Model (that extends Baum/Node so you can use all the handy methods from this excellent nested set implementation)
- Seed for building the root nodes, one for each type of hierarchy, specified in your config file
Installation
Add these lines to your composer.json file:
Once that is done, run the composer update command:
Alternatively just run this command:
Register Service Provider
After composer update completes, add this line to your config/app.php file in the 'providers' array:
Publish the Migrations
Publish the migrations
Run the migration
Ensure the categories types
are set correctly in the seeder file. You can initialise this to
whatever you like.
Run the Seeders
Run the seed (this will create root nodes for each of your category types
)
You may prefer to build your own CategoriesTableSeeder class based on the code in CategoriesTableBaseArraySeeder to seed your own initial set of categories.
Usage
This class relies on the behind-the-scenes capabilities of Baum. For details on the use of that see the README on github or the Baum web site
All versions of nestedcategories with dependencies
illuminate/contracts Version ^5.0
illuminate/support Version ^5.0
cviebrock/eloquent-sluggable Version ~4.0
baum/baum Version ~1.1
delatbabel/fluents Version ^1.3