PHPackages                             mintbridge/eloquent-favourites - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mintbridge/eloquent-favourites

ActiveLibrary[Database &amp; ORM](/categories/database)

mintbridge/eloquent-favourites
==============================

An eloquent package for favouriting eloquent models.

0.0.1(10y ago)63702[1 PRs](https://github.com/mintbridge/eloquent-favourites/pulls)MITPHPPHP &gt;=5.4.0

Since Feb 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mintbridge/eloquent-favourites)[ Packagist](https://packagist.org/packages/mintbridge/eloquent-favourites)[ RSS](/packages/mintbridge-eloquent-favourites/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Eloquent Favourites
===================

[](#eloquent-favourites)

Laravel 5 package that allows users to favourite eloquent models.

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require mintbridge/eloquent-favourites
```

Once installed add the service provider and facade to your app config

```
// config/app.php

'providers' => [
    '...',
    'Mintbridge\EloquentFavourites\FavouritesServiceProvider',
];

'aliases' => [
    '...',
    'Favourites' => 'Mintbridge\EloquentFavourites\FavouritesFacade',
];
```

You'll also need to publish and run the migration in order to create the database table.

```
php artisan vendor:publish --provider="Mintbridge\EloquentFavourites\FavouritesServiceProvider" --tag="config"
php artisan vendor:publish --provider="Mintbridge\EloquentFavourites\FavouritesServiceProvider" --tag="migrations"
php artisan migrate

```

The configuration will be written to `config/eloquent-favourites.php`. The options have sensible defaults but you should change the user model to match the one used in your application.

Usage
-----

[](#usage)

This package will allow your users to favourite models used in your application. To do so the models that you would like to favouritable must use the `Favouritable` trait and implement `FavouritableInterface`.

```
use Mintbridge\EloquentFavourites\Favouritable;
use Mintbridge\EloquentFavourites\FavouritableInterface;

class Article extends Eloquent implements FavouritableInterface {

    use Favouritable;
    ...
}
```

Models can then be favourited, un-favourited or toggled using by using the `FavouritesManager` or more easily with the favourites facade:

```
$article = Article::find(1);

// add article as a favourite
Favourites::add($article);

// remove article from by a favourite
Favourites::remove($article);

// toggle article as being a favourite
Favourites::toggle($article);
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d692eb428aac3d994513c18ac2c3c1d5b0a3e15f1e0c56661aa14fae8b4a942b?d=identicon)[mintbridge](/maintainers/mintbridge)

---

Top Contributors

[![mintbridge](https://avatars.githubusercontent.com/u/32777?v=4)](https://github.com/mintbridge "mintbridge (7 commits)")

---

Tags

laraveleloquentfavoritefavourite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mintbridge-eloquent-favourites/health.svg)

```
[![Health](https://phpackages.com/badges/mintbridge-eloquent-favourites/health.svg)](https://phpackages.com/packages/mintbridge-eloquent-favourites)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k322.4k1](/packages/cybercog-laravel-love)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.5k12.4M294](/packages/spatie-laravel-sluggable)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[watson/validating

Eloquent model validating trait.

9733.4M53](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
