baks-dev/products-favorite
Laravel/PHP module for managing product favorites (wishlist): add/remove products to a user’s favorites, store and retrieve favorite lists, and integrate into e-commerce product pages. Requires PHP 8.4+.
composer require baks-dev/products-favorite) with no reported dependency conflicts. Feasibility is high for Laravel-based stacks, but dependency risks (e.g., silent updates to third-party packages) should be validated.user_id, product_id) and index optimizations must be verified to ensure performance and data integrity.Favorite::toggle()) and event system (e.g., FavoriteAdded, FavoriteRemoved) should be tested for reactivity and extensibility. Customization via vendor:publish should be confirmed for overrides.FavoriteService::add()) and edge cases (e.g., duplicates, concurrency) should be audited.Cache::remember) should be verified. Assess whether the package introduces database bottlenecks (e.g., missing indexes, soft deletes).composer why-not baks-dev/products-favorite for version constraints.trans() support is assumed but should be tested for multi-language applications.vendor:publish?Auth system confirmed? Test Auth::user() binding in Favorite model/policies.FavoriteAdded events) for high-traffic scenarios?php bin/phpunit --group=products-favorite --filter=test*
POST /favorites).composer require baks-dev/products-favorite
php artisan vendor:publish --tag=products-favorite-config
php artisan vendor:publish --tag=products-favorite-views
php artisan migrate
--pretend to verify:
php artisan migrate --pretend
config/app.php:
BaksDev\ProductsFavorite\ProductsFavoriteServiceProvider::class,
config/products-favorite.php (if published).php bin/phpunit --group=products-favorite
User and Product models.Auth::user()).--group=products-favorite) to isolate issues. Log custom events for observability.How can I help you explore Laravel packages today?