Skip to content

Commit 530c174

Browse files
committed
Read Me File Added
1 parent 8ede3de commit 530c174

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Laravel Taggify
2+
============
3+
4+
[![Latest Stable Version](https://poser.pugx.org/rtconner/laravel-tagging/v/stable.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
5+
[![Total Downloads](https://poser.pugx.org/rtconner/laravel-tagging/downloads.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
6+
[![License](https://poser.pugx.org/rtconner/laravel-tagging/license.svg)](https://packagist.org/packages/rtconner/laravel-tagging)
7+
[![Build Status](https://travis-ci.org/rtconner/laravel-tagging.svg?branch=laravel-7)](https://travis-ci.org/rtconner/laravel-tagging)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/badges/quality-score.png?b=laravel-7)](https://scrutinizer-ci.com/g/rtconner/laravel-tagging/?branch=laravel-7)
9+
10+
11+
This package will allow user to add Tagging system in the Laravel 7 application.
12+
13+
You can provide combination of string or id or model to create tags. It will check if a tag is already exists in the tags table. If not it will create a new tag and attach with the model. It also comes with some useful helpers and Scopes.
14+
15+
#### Composer Install
16+
17+
```shell
18+
composer require amitkolloldey/laravel-taggify
19+
```
20+
21+
#### Run the migrations
22+
23+
Migrate The database tables
24+
25+
```bash
26+
php artisan migrate
27+
```
28+
29+
#### Setup your models
30+
```php
31+
<?php
32+
33+
namespace App;
34+
35+
use AmitKD\LaravelTaggify\Taggify;
36+
use Illuminate\Database\Eloquent\Model;
37+
38+
class Post extends Model
39+
{
40+
use Taggify;
41+
42+
protected $fillable = [
43+
'title'
44+
];
45+
}
46+
```
47+
48+
#### Credits
49+
50+
- Amit Kollol Dey - http://amitkolloldey.me
51+

0 commit comments

Comments
 (0)