PHPackages                             dizatech/tag - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dizatech/tag

ActiveLibrary

dizatech/tag
============

A full package for attach tags to all of models in laravel.

v1.0.0(4y ago)321MITBladePHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*

Since Jun 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/dizatech/tag)[ Packagist](https://packagist.org/packages/dizatech/tag)[ RSS](/packages/dizatech-tag/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Tag Package
===================

[](#laravel-tag-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4eeb20060e15840793279d426922f0aa4b95e644163a0e9efbafc4000438842d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64697a61746563682f7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dizatech/tag)[![GitHub issues](https://camo.githubusercontent.com/beccec4114df61d592fd64d461546e0694541575de60f1ea48361db3ccfaf47c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64697a61746563682f7461673f7374796c653d666c61742d737175617265)](https://github.com/dizatech/tag/issues)[![GitHub stars](https://camo.githubusercontent.com/c973830862b307d000776fda1cb28792a23ec67eed50c3d633cab6395a42247f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f64697a61746563682f7461673f7374796c653d666c61742d737175617265)](https://github.com/dizatech/tag/stargazers)[![GitHub forks](https://camo.githubusercontent.com/cce65e373fc753d2833e3fa6e114601d920a3c5d4b5302371c66a6ae97ae8328/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f64697a61746563682f7461673f7374796c653d666c61742d737175617265)](https://github.com/dizatech/tag/network)[![Total Downloads](https://camo.githubusercontent.com/a189328f94ec342d13cc3b28e8e2848ffe8ae5dbcdd18bbae5aaab758539e4b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64697a61746563682f7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tag/attachment)[![GitHub license](https://camo.githubusercontent.com/1ca7915a5768c253cb7d25f9edcc4d257190ac8ddffcef6c524c0e494bd1a3c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64697a61746563682f7461673f7374796c653d666c61742d737175617265)](https://github.com/dizatech/tag/blob/master/LICENSE)

A laravel package for manage your tags, that use ajax, bootstrap, select2 and sweetalert2 for client side and use from many to many polymorphic relationship in models.

[![](https://camo.githubusercontent.com/815e3bc0226680cef7acc46a1e305e67a4ca3ffbe94b1ffdb362acc3dfde9be9/68747470733a2f2f7331382e7069636f66696c652e636f6d2f66696c652f383433363838333639322f7461672e6769663f7261773d74727565)](https://camo.githubusercontent.com/815e3bc0226680cef7acc46a1e305e67a4ca3ffbe94b1ffdb362acc3dfde9be9/68747470733a2f2f7331382e7069636f66696c652e636f6d2f66696c652f383433363838333639322f7461672e6769663f7261773d74727565)

How to install and config [dizatech/tag](https://github.com/dizatech/tag) package?
----------------------------------------------------------------------------------

[](#how-to-install-and-config-dizatechtag-package)

```
composer require dizatech/tag
```

#### Install and publish files

[](#install-and-publish-files)

```
Publish 'lacopa' packages pages:
php artisan tag:install --lacopa | --lacopa --force | -l -f | -lf

Publish empty pages for another projects:
php artisan tag:install --force | -f
```

#### Use create and edit input components

[](#use-create-and-edit-input-components)

```
Use this component in your 'create' pages:

OR set custom properties, defaults: label="برچسب‌ها" name="tags" page="create"

And use this component in your 'edit' pages:

```

```
Use this Blade tag in your page:
@tagScripts()

OR use this tag in script section of page:
@slot('script')

    @tagScripts()

@endslot
```

#### Use index, create and edit pages and customize this pages

[](#use-index-create-and-edit-pages-and-customize-this-pages)

- If you use from `lacopa` add below code in your sidebar:

    ```
    @component('tag::components.sidebar.menu')@endcomponent
    ```
- If you want to use `tag package` in another project, you can use `/resources/views/vendor/tag` directory

    ```
    Use below component in your create page structure:

    Use below component in your edit page structure:

    Use below component in your index page structure:

    ```

#### Config files options

[](#config-files-options)

```
