Package Data | |
---|---|
Maintainer Username: | mpaleo |
Maintainer Contact: | github@michaelpaleo.com (Michael Paleo) |
Package Create Date: | 2016-01-17 |
Package Last Update: | 2016-03-05 |
Home Page: | https://mpaleo.github.io/view-tags |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:05:49 |
Package Statistics | |
---|---|
Total Downloads: | 351 |
Monthly Downloads: | 2 |
Daily Downloads: | 2 |
Total Stars: | 4 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Add the package to your composer.json
...
"mpaleo/view-tags": "~1.0",
...
Update
composer update
Add the service provider to the providers array in {laravel-root}\config\app.php
...
ViewTags\ViewTagsServiceProvider::class,
...
Add the alias in {laravel-root}\config\app.php
...
'ViewTags' => ViewTags\ViewTags::class,
...
ViewTags::tag('viewOne', 'someTag');
ViewTags::tag('viewTwo', 'someTag');
ViewTags::tag('viewThree', ['someTag', 'anotherTag']);
ViewTags::taggedWith('someTag');
/* Output:
* array(3) {
* [0] => "viewOne"
* [1] => "viewTwo"
* [2] => "viewThree"
* }
*/
ViewTags::taggedWith('anotherTag');
/* Output:
* array(1) {
* [0] => "viewThree"
* }
*/
The view tags package is licensed under the MIT license