PHPackages                             aamatevosyan/laravel-trashable - 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. aamatevosyan/laravel-trashable

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

aamatevosyan/laravel-trashable
==============================

Trashable behaviour for Eloquent models

03PHP

Since May 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aamatevosyan/laravel-trashable)[ Packagist](https://packagist.org/packages/aamatevosyan/laravel-trashable)[ RSS](/packages/aamatevosyan-laravel-trashable/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Trashable behaviour for Eloquent models
=======================================

[](#trashable-behaviour-for-eloquent-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f1a27b1437e9c9e817986d4f2e9c1c962afd0386f7f4037a5319310131ac0109/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61616d617465766f7379616e2f6c61726176656c2d747261736861626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aamatevosyan/laravel-trashable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ff8cf755fa7a7b25005a0f8a6e0c2f0d4a4cf686ee771676031ffa5ea1f65645/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61616d617465766f7379616e2f6c61726176656c2d747261736861626c652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/aamatevosyan/laravel-trashable/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f9527e80cb7badc6152b78e0a7ae63ec7a761bfae4bb0a9b872ffd00a094602f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61616d617465766f7379616e2f6c61726176656c2d747261736861626c652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/aamatevosyan/laravel-trashable/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1c7aedabba30290875b9da821968864b3b27388e813559d6e0685eda803b61e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61616d617465766f7379616e2f6c61726176656c2d747261736861626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aamatevosyan/laravel-trashable)

---

This repo can be used as to scaffold a Laravel package. Follow these steps to get started:

1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this laravel-trashable
2. Run "./configure-laravel-trashable.sh" to run a script that will replace all placeholders throughout all the files
3. Remove this block of text.
4. Have fun creating your package.
5. If you need help creating a package, consider picking up our [Laravel Package Training](https://laravelpackage.training) video course.

---

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/b24fd12a15424a0551bd08f7c1e6eb1cfae4f83c6982d1a78388441e3eff7123/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d747261736861626c652e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-trashable)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require aamatevosyan/laravel-trashable
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Aamatevosyan\LaravelTrashable\LaravelTrashableServiceProvider" --tag="laravel-trashable-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Aamatevosyan\LaravelTrashable\LaravelTrashableServiceProvider" --tag="laravel-trashable-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
$laravel-trashable = new Aamatevosyan\LaravelTrashable();
echo $laravel-trashable->echoPhrase('Hello, Spatie!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Armen Matevosyan](https://github.com/aamatevosyan)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47445178?v=4)[Armen Matevosyan](/maintainers/aamatevosyan)[@aamatevosyan](https://github.com/aamatevosyan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aamatevosyan-laravel-trashable/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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