PHPackages                             lamalama/laravel-wishlist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lamalama/laravel-wishlist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lamalama/laravel-wishlist
=========================

Make your models wishlistable

0.2.1(5y ago)239.2k—6.3%7[2 issues](https://github.com/lamalamaNL/laravel-wishlist/issues)MITPHP

Since May 31Pushed 3y ago4 watchersCompare

[ Source](https://github.com/lamalamaNL/laravel-wishlist)[ Packagist](https://packagist.org/packages/lamalama/laravel-wishlist)[ Docs](https://github.com/lamalamaNL/laravel-wishlist)[ RSS](/packages/lamalama-laravel-wishlist/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (9)DependenciesVersions (10)Used By (0)

Laravel Wishlist
================

[](#laravel-wishlist)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9c0bb717bc8b4718031f4b47170028e44cfe6cd5fd923aa7f9b506562b80b51e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616d616c616d612f6c61726176656c2d776973686c6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lamalama/laravel-wishlist)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/d3f9d99802bac9913ee85b0409c0f5443c3636123f654dc337d4c81e27b80519/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c616d616c616d612f6c61726176656c2d776973686c6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lamalama/laravel-wishlist)

Make your Eloquent models wishlistable.

Install
-------

[](#install)

Via Composer

```
$ composer require lamalama/laravel-wishlist
```

You can publish the migration with:

```
php artisan vendor:publish --provider="LamaLama\Wishlist\WishlistServiceProvider" --tag="migrations"
```

After publishing the migration you can create the `wishlist` table by running the migrations:

```
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="LamaLama\Wishlist\WishlistServiceProvider" --tag="config"
```

Prepare user model
------------------

[](#prepare-user-model)

Import the `HasWishlists` trait to your User model file.

```
use LamaLama\Wishlist\HasWishlists;
```

Add the `HasWishlists` trait to your User model.

```
use HasWishlists;
```

Prepare wishlistable model(s)
-----------------------------

[](#prepare-wishlistable-models)

Optionally you can add the `Wishlistable` trait to Eloquent models that you want to give additional methods. Import the `Wishlistable` trait to your wishlistable model file.

```
use LamaLama\Wishlist\Wishlistable;
```

Add the `Wishlistable` trait to your wishlistable model.

```
use Wishlistable;
```

Use
---

[](#use)

You can add any Eloquent model as 'wish' to the User model:

```
$user = User::find(1);
$product = Product::find(1);
$user->wish($product);
```

Optionally you can set the name of the wishlist to which you want to add the wish. When no list is specified the wish will be stored on the 'default' list. The name of the default list can be adjusted in the config file.

```
$user->wish($product, 'Christmas presents');
```

You can remove any Eloquent model as 'wish' from the User model:

```
$user->unwish($product);
$user->unwish($product, 'Christmas presents');
```

Get all wishlists

```
$user->wishlists();
```

Get a specific wishlist

```
$user->wishlist('Christmas presents');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Lama Lama](https://github.com/lamalamaNL)
- [Mark de Vries](https://github.com/lamalamaMark)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

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

Every ~23 days

Recently: every ~43 days

Total

9

Last Release

2037d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5006f251730996960567ed6065dceb6a978ad34f9a9d3d27dac9ecb612c15a70?d=identicon)[lamalamaMark](/maintainers/lamalamaMark)

---

Top Contributors

[![lamalamaMark](https://avatars.githubusercontent.com/u/1886210?v=4)](https://github.com/lamalamaMark "lamalamaMark (56 commits)")

---

Tags

laravelphpwishlistlaravelwishlist

### Embed Badge

![Health badge](/badges/lamalama-laravel-wishlist/health.svg)

```
[![Health](https://phpackages.com/badges/lamalama-laravel-wishlist/health.svg)](https://phpackages.com/packages/lamalama-laravel-wishlist)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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