This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. No replacement package was suggested.

Watchable Polymorphic Eloquent Models for Laravel 5

3.2.0 2019-08-28 13:07 UTC

This package is auto-updated.

Last update: 2020-02-28 14:30:34 UTC


Build Status PHP from Packagist Latest Version License


Require this package, with Composer, in the root directory of your project.

$ composer require artisanry/watchable

At last you need to publish and run the migration.

php artisan vendor:publish --provider="Artisanry\Watchable\WatchableServiceProvider" && php artisan migrate


Setup a Model


namespace App;

use Artisanry\Watchable\HasWatchlists;
use Illuminate\Database\Eloquent\Model;

class User extends Model
    use HasWatchlists;

Create a new watchlist for the $user-model

    'title' => str_random(10),
    'description' => str_random(10),
    'type' => 'favorites',

Add an item to a watchlist


Remove an item from a watchlist



$ phpunit


If you discover a security vulnerability within this package, please send an e-mail to All security vulnerabilities will be promptly addressed.


This project exists thanks to all the people who contribute.


Mozilla Public License Version 2.0 (MPL-2.0).