virtualorz / tag
There is no license information available for the latest version (1.0.2) of this package.
1.0.2
2018-06-14 09:20 UTC
Requires
- virtualorz/pagination: ^1.0.0
This package is auto-updated.
Last update: 2025-04-20 14:12:51 UTC
README
install by composer
composer require virtualorz/tag
edit config/app.php
'providers' => [
...
Virtualorz\Tag\TagServiceProvider::class,
Virtualorz\Pagination\PaginationServiceProvider::class,
...
]
'aliases' => [
...
'Tag' => Virtualorz\Tag\TagFacade::class,
'Pagination' => Virtualorz\Pagination\PaginationFacade::class,
...
]
migration db table
php artisan migrate
usage
1. get cate list data
$dataSet = Tag::list($page=0,$is_backend=0);
$page : page for data display,
$is_backend : if 0 then display disabled data, if 1 then display enable data only
$dataSet : return date
$_GET['keyword'] : search for name keyword
2. add data to cate
Tag::add();
with request variable name required : tag-name,tag-enable
3. get cate detail
$dataRow = Tag::detail($tag_id);
4. edit data to cate
Tag::edit();
with request variable name required : tag-name,tag-enable
5. delete cate data
Tag::delete();
with request variable name required : id as integer or id as array
6. enable cate data
Tag::enable($type);
with request variable name required : id as integer or id as array $type is 0 or1 , 0 to disable i to enable