Download the PHP package hamedrajabpour/laravel-tags without Composer
On this page you can find all versions of the php package hamedrajabpour/laravel-tags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hamedrajabpour/laravel-tags
More information about hamedrajabpour/laravel-tags
Files in hamedrajabpour/laravel-tags
Package laravel-tags
Short Description Add tags and taggable behaviour to your Laravel app
License MIT
Informations about the package laravel-tags
Add tags and taggable behaviour to a Laravel app
This package offers taggable behaviour for your models. After the package is installed the only thing you have to do is add the HasTags
trait to an Eloquent model to make it taggable.
The Main Diffrence Between This Package & Spatie that removed translation & slug
Here are some code examples:
Requirements
This package requires Laravel 8 or higher, PHP 8 or higher, and a database that supports json
fields and MySQL compatible functions.
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the migration with:
After the migration has been published you can create the tags
and taggables
tables by running the migrations:
You can optionally publish the config file with:
Testing
- Copy
phpunit.xml.dist
tophpunit.xml
and fill in your database credentials. - Run
composer test
.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-tags with dependencies
laravel/framework Version ^8.67|^9.0|^10.0|^11.0
nesbot/carbon Version ^3.8
spatie/eloquent-sortable Version ^3.10|^4.0
spatie/laravel-package-tools Version ^1.4