Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Likeable Laravel Package

turahe/laravel-likeable

Laravel Likeable adds likes and dislikes to any Eloquent model in minutes. Prepare your model, then use built-in methods, scopes, events, and console commands to manage reactions with clean, tested Laravel integration.

View on GitHub
Deep Wiki
Context7
1.3.0

Added

  • Docker-based development and testing (Dockerfile, Makefile, docker/composer-install.sh, docker/test.sh)
  • Multi-PHP vendor caching via per-version .build/vendor-php-* directories
  • Laravel 10 and Laravel 13 support in illuminate/database and illuminate/support constraints
  • PHP 8.5 test target in the Docker Makefile

Changed

  • LikeCounter::rebuild() now delegates to LikeableService for counter removal and recounting
  • getLikeTypeId() resolves string types with LikeType::tryFrom() instead of constant lookup
  • fetchLikesCounters() normalizes model class names to morph types
  • likeTypeRelations() uses LikeType enum values as relation map keys
  • Test suite no longer uses [@runInSeparateProcess](https://github.com/runInSeparateProcess); runs in ~13 seconds instead of timing out
  • BaseTestCase uses migrate:fresh for reliable per-test database isolation
  • Code style updated with Laravel Pint across src/, tests/, and migrations/
  • LikeObserver uses strict === comparison for like type checks

Fixed

  • Composer 300-second process timeout when running the full test suite in Docker
  • Morph map leaking between tests (Relation::morphMap([], false) in ConsoleCommandTest)
  • fetchLikesCounters() returning empty results when a morph map is registered
  • Test tearDown() methods now call parent::tearDown() for proper application cleanup
1.0.0

Added

  • Comprehensive test coverage (79 tests, 0 failures, 0 risky tests)
  • Full support for Laravel 11 and 12
  • GitHub Actions CI for PHP 8.3/8.4 and Laravel 11/12
  • Code coverage reporting via Codecov with Xdebug enabled
  • Code style checks with PHP CS Fixer
  • Static analysis with Larastan across all PHP/Laravel combinations
  • New tests for all major features: likes, dislikes, toggles, events, exceptions, console commands, and service layer
  • Detailed README with usage, CI, and testing instructions

Changed

  • Refactored counter management for reliability (moved logic from observers to service methods)
  • Improved event dispatching and test isolation
  • Updated LikeType enum handling for PHP 8.3/8.4 compatibility
  • Improved test database setup and teardown
  • Enhanced error handling and test reliability

Fixed

  • Fixed all previously failing and risky tests
  • Fixed unique constraint and counter bugs in toggle and service logic
  • Fixed console command output and test expectations
  • Fixed morph map and model alias issues in tests
1.2.0

Added

  • Automated release workflows for version management and deployment
  • Version bump workflow for conventional commits and changelog updates
  • Release workflow for automated GitHub releases with assets
  • Support for conventional commit format in CI/CD pipeline
  • Comprehensive badges for project status and workflows
  • Professional release documentation and process guides

Changed

  • Enhanced CI/CD pipeline with automated release management
  • Improved changelog generation and maintenance process
  • Updated README with comprehensive release process documentation
0.0.1
  • Initial release with basic like/dislike functionality, events, and artisan command support.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table