kun391 / laravel-categories
Package categories with with trees
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: ~5.5|~7.0
- illuminate/support: ~5.1
- kalnoy/nestedset: 4.0.1
- laravelcollective/html: 5.2.*
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-11-14 00:49:48 UTC
README
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.