Download the PHP package spatie/laravel-tags without Composer
On this page you can find all versions of the php package spatie/laravel-tags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/laravel-tags
More information about spatie/laravel-tags
Files in spatie/laravel-tags
Package laravel-tags
Short Description Add tags and taggable behaviour to your Laravel app
License MIT
Homepage https://github.com/spatie/laravel-tags
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.
But we didn't stop with the regular tagging capabilities you find in every package. Laravel Tags comes with batteries included. Out of the box it has support for translating tags, multiple tag types and sorting capabilities.
You'll find the documentation on https://spatie.be/docs/laravel-tags.
Here are some code examples:
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
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:
This is the contents of the published config file:
Documentation
You'll find the documentation on https://docs.spatie.be/laravel-tags/v4.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the laravel-tags
package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Testing
- Copy
phpunit.xml.dist
tophpunit.xml
and fill in your database credentials. - Run
composer test
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
- Freek Van der Herten
- All Contributors
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 ^2.63|^3.0
spatie/eloquent-sortable Version ^3.10|^4.0
spatie/laravel-package-tools Version ^1.4
spatie/laravel-translatable Version ^4.6|^5.0|^6.0