Laravel Favorite

screenshot of Laravel Favorite

Allows Laravel Eloquent models to implement a 'favorite', 'like', 'remember' and 'follow' features.

Overview:

Laravel Favorite is an innovative package designed for Laravel developers looking to incorporate favorite, remember, or follow features into their Eloquent models. Compatible with Laravel versions 5 through 8, this package provides a seamless way to manage favorite functionalities in web applications. With easy integration and efficient usage, Laravel Favorite enhances user interaction by allowing them to mark models as favorites.

This package simplifies the implementation of favorite features with straightforward installation and usage instructions. By utilizing traits, developers can easily convert their models to support the favorite functionality without any hassle. Laravel Favorite not only streamlines the development process but also promotes an engaging experience for users.

Features:

  • Easy Installation: Install via Composer for Laravel 5.5 and above, while older versions require a simple configuration adjustment.

  • Model Trait Integration: Use the Favoriteable and Favoriteability traits on your models to enable favorite functionality.

  • User Interaction: Allow authenticated and unauthenticated users to favorite models, providing flexibility in usage.

  • Favorites Management: Users can add to or remove favorites effortlessly, with simple method calls.

  • Favorites Count: Retrieve the count of favorites for any object using the favoritesCount attribute.

  • Favorited By Users: Easily fetch users who have marked a certain object as favorite through the favoritedBy() method.

  • Testing Support: The package includes built-in testing features, ensuring code reliability with every contribution.

  • Contributions Welcome: Open to community contributions, making it easy for developers to collaborate and enhance the package further.