PHPackages                             ironshark/laravel-deliverable - 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. ironshark/laravel-deliverable

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

ironshark/laravel-deliverable
=============================

Trait for Laravel Eloquent models to allow easy implementation of delivering feature.

v1.0.1(10y ago)6191MITPHPPHP &gt;=5.3.0

Since Aug 26Pushed 10y ago4 watchersCompare

[ Source](https://github.com/ironsharkde/laravel-deliverable)[ Packagist](https://packagist.org/packages/ironshark/laravel-deliverable)[ RSS](/packages/ironshark-laravel-deliverable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel Deliverable Plugin
==========================

[](#laravel-deliverable-plugin)

[![License](https://camo.githubusercontent.com/8a479bbe06901c9cde02b390ad08fd34e3ee68a73eaab9cddf10f4f634afd747/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69726f6e736861726b64652f6c61726176656c2d64656c6976657261626c652e737667)](https://packagist.org/packages/ironshark/laravel-deliverable)[![Downloads](https://camo.githubusercontent.com/2800831ed6a0a0b72a8f2b01a01e03e672de446a83ff96ba950086485028460e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69726f6e736861726b2f6c61726176656c2d64656c6976657261626c652e737667)](https://packagist.org/packages/ironshark/laravel-deliverable)[![Version-stable](https://camo.githubusercontent.com/2d4a355771f6b1b37edd9a6f324ae6416f0e4458a40f845b4474909704ec068a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69726f6e736861726b2f6c61726176656c2d64656c6976657261626c652e737667)](https://packagist.org/packages/ironshark/laravel-deliverable)

Trait for Laravel Eloquent models to allow easy implementation of a "deliverable" feature. Can be used for reading lists or shipments.

Composer Install
----------------

[](#composer-install)

```
composer require ironshark/laravel-deliverable
```

```
php artisan vendor:publish --provider="IronShark\Deliverable\DeliverableServiceProvider"
php artisan migrate
```

Setup your models
-----------------

[](#setup-your-models)

```
class Article extends \Illuminate\Database\Eloquent\Model {
    use IronShark\Deliverable\DeliverableTrait;
}
```

Sample Usage
------------

[](#sample-usage)

```
$file = File::create(['name' => 'filename']);
$admin = \App\User::where('name', 'admin')->first();

$file->deliver(\App\User::all()); // deliver file to all users
$file->deliver(1, 5); // deliver files to user with id `1`, priority = `5`

$file->setDelivered(); // mark file as deliverd to logged in user
$file->setDelivered(true, $admin); // mark file as deliverd to admin user

$file->isDelivered(); // check whether current item was delivered to current user (`true`|`false`)
$file->isDelivered($admin); // check whether current item was delivered to admin

$file->cancelDelivery(); // remove delivery tasks for current user
$file->cancelDelivery($admin); // remove delivery tasks for admin
$file->cancelDelivery([1,5,9,8]); // remove delivery tasks for specified user ids
```

DataBase sturcture
------------------

[](#database-sturcture)

namedatatypeexampleid`INT``1`deliverable\_id`INT``34`deliverable\_type`VARCHAR(256)``App\File`user\_id`INT``25`priority`TINYINT``2`created\_at`DATETIME``2015-07-20 09:19:41`delivered\_at`DATETIME``2015-07-20 09:19:41`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21e9b7ea17d986bae709d9ce167df6df4df854f742bc76097139af77e4e9a34b?d=identicon)[TUNER88](/maintainers/TUNER88)

---

Top Contributors

[![TUNER88](https://avatars.githubusercontent.com/u/1565397?v=4)](https://github.com/TUNER88 "TUNER88 (19 commits)")

---

Tags

laraveleloquenttraitdeliverable

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ironshark-laravel-deliverable/health.svg)

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

###  Alternatives

[cybercog/laravel-ban

Laravel Ban simplify blocking and banning Eloquent models.

1.1k651.8k11](/packages/cybercog-laravel-ban)[cybercog/laravel-love

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

1.2k302.7k1](/packages/cybercog-laravel-love)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[pawelmysior/laravel-publishable

Toggle the published state of your Eloquent models easily

2219.1k3](/packages/pawelmysior-laravel-publishable)

PHPackages © 2026

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