2017 © Pedro Peláez
 

library laravel-categories

A Laravel 4 package for adding one or more types of category hierarchies to a website

image

fbf/laravel-categories

A Laravel 4 package for adding one or more types of category hierarchies to a website

  • Sunday, May 18, 2014
  • by neilcrookes
  • Repository
  • 2 Watchers
  • 17 Stars
  • 568 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Categories

A Laravel 4 package for adding one or more types of category hierarchies to a website, (*1)

e.g. a hierarchy for blog categories and another for product categories, (*2)

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
  • Sample FrozenNode/Administrator config file for managing the categories

Installation

Add the following to you composer.json file (Recommend swapping "dev-master" for the latest release), (*3)

"fbf/laravel-categories": "dev-master"

Run, (*4)

composer update

Add the following to app/config/app.php, (*5)

'Fbf\LaravelCategories\LaravelCategoriesServiceProvider'

Publish the config, (*6)

php artisan config:publish fbf/laravel-categories

Run the migration, (*7)

php artisan migrate --package="fbf/laravel-categories"

Ensure the categories types are set correctly in the config file., (*8)

Run the seed (this will create root nodes for each of your category types), (*9)

php artisan db:seed --class="Fbf\LaravelCategories\CategoriesTableBaseSeeder"

Build your menus in the database, or if you are using FrozenNode's Laravel Administrator, see the info below, (*10)

Administrator

You can use the excellent Laravel Administrator package by FrozenNode to administer your categories., (*11)

http://administrator.frozennode.com/docs/installation, (*12)

A ready-to-use model config file for the Category model (categories.php), including custom actions to reorder nodes in the hierarchy, is provided in the src/config/administrator directory of the package, which you can copy into the app/config/administrator directory (or whatever you set as the model_config_path in the administrator config file)., (*13)

The Versions

18/05 2014

dev-master

9999999-dev

A Laravel 4 package for adding one or more types of category hierarchies to a website

  Sources   Download

The Requires

 

laravel categories hierarchy

26/02 2014

v0.2.0

0.2.0.0

A Laravel 4 package for adding one or more types of category hierarchies to a website

  Sources   Download

The Requires

 

laravel categories hierarchy

26/02 2014

v0.1.0

0.1.0.0

A Laravel 4 package for adding one or more types of category hierarchies to a website

  Sources   Download

The Requires

 

laravel categories hierarchy