https://github.com/yuges-code/laravel-topicable
Package for easily attaching topics to Laravel eloquent models ๐ก ๐ฏ ๐
https://github.com/yuges-code/laravel-topicable
laravel morphable package php topics yuges
Last synced: 3 months ago
JSON representation
Package for easily attaching topics to Laravel eloquent models ๐ก ๐ฏ ๐
- Host: GitHub
- URL: https://github.com/yuges-code/laravel-topicable
- Owner: yuges-code
- License: mit
- Created: 2025-03-27T19:30:29.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-05-22T12:17:49.000Z (8 months ago)
- Last Synced: 2025-05-22T14:04:02.516Z (8 months ago)
- Topics: laravel, morphable, package, php, topics, yuges
- Language: PHP
- Homepage: https://yuges-code.github.io/laravel-topicable/
- Size: 637 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Build
Project
Quality
Laravel Topicable
๐ก Package for easily attaching topics to Laravel eloquent models
# ๐ฟ Installation
### โ Composer
You can install the package via composer:
```
composer require yuges-code/laravel-topicable
```
### โ Publishing Config
Publishing the config file (config/topicable.php) is optional:
```
php artisan vendor:publish --provider="Yuges\Topicable\Providers\TopicableServiceProvider" --tag="topicable-configs"
```
### โ Publishing Migrations
You need to publish the migration to create the topics table:
```
php artisan vendor:publish --provider="Yuges\Topicable\Providers\TopicableServiceProvider" --tag="topicable-migrations"
```
### โ Running Migrations
After that, you need to run migrations:
```
php artisan migrate
```
# ๐งช Running Tests
### โ PHPUnit tests
To run tests, run the following command:
```
composer test
```
# โ๏ธ License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
# ๐๐ผโโ๏ธ Authors Information
Created in 2025 by:
- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)