kun391 / laravel-categories by kun391

Package categories with with trees
19
4
3
Package Data
Maintainer Username: kun391
Maintainer Contact: nguyentruongthanh.dn@gmail.com (Thanh Nguyen)
Package Create Date: 2016-01-21
Package Last Update: 2016-05-25
Language: JavaScript
License: MIT
Last Refreshed: 2024-03-23 03:06:59
Package Statistics
Total Downloads: 19
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Laravel Categories

Latest Stable Version Total Downloads Latest Unstable Version License

This is a package use to management multiple categories for laravel.

Install

Via Composer

$ composer require kun391/laravel-categories

Setup

Add the following to your composer.json file :

"require": {
    "kun391/laravel-categories": "dev-master",
},

Then register service provider with in config/app.php:

'providers' => [
    ...
    'Kun\Categories\CategoriesServiceProvider::class',
]

Finally, you should run the command to publish assets of the package.

php artisan vendor:publish --tag=public --force

Customize

In this package, I used the Forms & HTML. If you change the alias of this one. You should publish file config and modify it.

php artisan vendor:publish --tag=config

then

return [
    'providers' => [
        'Collective\Html\HtmlServiceProvider'
    ],
    'aliases' => [
        'form' => [
            'alias_name' => 'Form',
            'alias' => 'Collective\Html\FormFacade'
        ],
        'html' => [
            'alias_name' => 'Html',
            'alias' => 'Collective\Html\HtmlFacade'
        ],
    ]
];

If you want to custom views or translations, you can publish views/translations.

php artisan vendor:publish --tag=views
php artisan vendor:publish --tag=translations

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

License

The MIT License (MIT). Please see License File for more information.