yuges-code / laravel-topicable
💡Package for easily attaching topics to Laravel eloquent models
Fund package maintenance!
yuges-code
Requires
- php: ^8.4
- yuges-code/laravel-package: ^1.0
- yuges-code/laravel-sluggable: ^1.0
Requires (Dev)
- orchestra/testbench: ^10.0
README

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 for more information.
🙆🏼♂️ Authors Information
Created in 2025 by: