Download the PHP package app-ark/laravel-tags without Composer
On this page you can find all versions of the php package app-ark/laravel-tags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download app-ark/laravel-tags
More information about app-ark/laravel-tags
Files in app-ark/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://docs.spatie.be/laravel-tags/v2.
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.
Requirements
This package requires Laravel 5.8 or higher, PHP 7.2 or higher and a database that supports json fields and functions such as MySQL 5.7 or higher.
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/v2.
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
.env.exampleto.envand 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 discover any security related issues, please email [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, Samberstraat 69D, 2060 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
- Freek Van der Herten
- All Contributors
Support us
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-tags with dependencies
laravel/framework Version >=5.0
app-ark/eloquent-sortable Version >=0.0.1