laravel-eloquent-tags:管理Laravel雄辩的标签

时间:2024-04-09 20:50:39
【文件属性】:

文件名称:laravel-eloquent-tags:管理Laravel雄辩的标签

文件大小:6KB

文件格式:ZIP

更新时间:2024-04-09 20:50:39

laravel eloquent tags PHP

Laravel雄辩的标签 需要 需要使用Laravel雄辩标签: composer require zing/laravel-eloquent-tags 用法 use Zing \ LaravelEloquentTags \ Tests \ Models \ Product ; use Zing \ LaravelEloquentTags \ Tag ; $ product = Product :: query ()-> first (); // Add tag(s) to model $ product -> attachTag ( "tag" ); $ product -> attachTags ([ "tag" , Tag :: query ()-> first () ]); // Remove tag(s) from model $ product -> deta


【文件预览】:
laravel-eloquent-tags-master
----migrations()
--------2020_10_06_110235_create_tag_tables.php(1KB)
----src()
--------HasTags.php(4KB)
--------Tag.php(703B)
--------EloquentTagsServiceProvider.php(1KB)
----config()
--------eloquent-tags.php(340B)
----LICENSE(1KB)
----README.md(2KB)
----composer.json(2KB)

网友评论