Download the PHP package totov/laravel-soft-delete-morph-to-many-pivots without Composer
On this page you can find all versions of the php package totov/laravel-soft-delete-morph-to-many-pivots. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download totov/laravel-soft-delete-morph-to-many-pivots
More information about totov/laravel-soft-delete-morph-to-many-pivots
Files in totov/laravel-soft-delete-morph-to-many-pivots
Package laravel-soft-delete-morph-to-many-pivots
Short Description Allow morphToMany relationship pivots to be soft deleted.
License MIT
Homepage https://github.com/totov/laravel-soft-delete-morph-to-many-pivots
Informations about the package laravel-soft-delete-morph-to-many-pivots
Allow morphToMany relationship pivots to be soft deleted.
Installation
You can install the package via composer:
Usage
Use the MorphToManySoftDeletesTrait
trait along with the morphToManySoft
function and which returns a MorphToManySoftDeletes
On the morphed model, use the morphedByManySoft
function:
Ensure that your pivot table has a deleted_at
column which can be used for the soft deleting.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Stephen Hamilton
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-soft-delete-morph-to-many-pivots with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0