yemrealtanay/tags
Composer 安装命令:
composer require yemrealtanay/tags
包简介
You can add and use tags for your models for any time! This package is a simplified version of the spatie laravel tags package.
README 文档
README
Yemrealtanay/tags
Laravel Composer Library
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
About The Project
You can add and use tags for your models for any time! This package is a simplified version of the spatie laravel tags package. If you want to more detailed tag package please visit: https://spatie.be/docs/laravel-tags/v4/introduction
Built For
Prerequisites
This is an example of how to list things you need to use the software and how to install them.
- need
"php": "^8.0", "laravel/framework": "^8.67|^9.0"
Installation
-
- composer
composer require Yemrealtanay/tags
- vendor publish for migrations
php artisan vendor:publish --provider="Yemrealtanay\Tags\TagsServiceProvider" --tag="migrations"
- vendor publish for config file
php artisan vendor:publish --provider="Yemrealtanay\Tags\TagsServiceProvider" --tag="config"
- migrate
php artisan migrate
Usage
use Yemrealtanay\Tags\HasTags User::attachTags(['tag1', 'tag2', 'tag3']); User::detachTags(['tag1', 'tag2']); User::with('tags')->query();
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Yunus Emre Altanay - y.emrealtanay@gmail.com
Project Link: https://github.com/yemrealtanay/tags/
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-07