laravel-favorite
laravel-favorite copied to clipboard
:heart: User favorite feature for Laravel Application.
Currently we only allow a 'user' to favourite a model, would it be possible in the future to allow many models to favourite many models? For example: - User::class can...
Thanks for a great work, I think this package can be compatible with older versions of Laravel as well. You can update `composer.json` to be compatible with `^6.0|^7.0|^8.0|^9.0` versions. You...
This PR. allows to install the package in `>=6.0` laravel versions. fixes https://github.com/overtrue/laravel-favorite/issues/30
For example: ``` $job = Job::find(1); $page = Page::find( Auth::user()->currentPage()->id ) $page->favorite($job) ``` Page.php `use Favoriter` Job `use Favoritable`
i have two models related to users one for admin users `User` and other for customers `Customer`, I need to apply this package with `Customer` model, and i seed on...
``` Too few arguments to function App\Models\User::attachFavoriteStatus(), 1 passed in app/Livewire/PlacesList.php on line 43 and exactly 2 expected ``` Downgrading to 5.3.0 works fine.