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
v1.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
v1.2.0

What's Changed

  • feat: add comprehensive release workflows and badges
  • fix: remove support laravel 10
  • add support to php 8.1
  • fix: xdebug
  • fix: update tests.yml
  • feat: add phpstan
  • fix: change branch
  • fix: test
  • udate tests

Installation

composer require turahe/laravel-likeable

Documentation

See the README for full documentation.

v0.0.1
  • likes and dislke
  • counter of like and dislike
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.
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
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk