spatie/laravel-deleted-models
Automatically copy deleted Eloquent model attributes into a deleted_models table to create a recycle bin for records. Restore deleted models by ID when needed. An alternative to soft deletes for preserving deletion history without keeping rows in place.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-data | 0.94 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| spatie/laravel-model-status | 0.94 | Add status history to any Eloquent model with Spatie’s HasStatuses trait. Set statuses (strings or enums), store reasons/extra info, and retrieve current or previous statuses via convenient helpers like status() and latestStatus(). | 1,056 | 1,060 | 83 | 116K | 0 | 22.9 | 29.7 | MIT | 8 months ago | |
| spatie/laravel-searchable | 0.93 | Structured, case-insensitive search across Eloquent models and other sources. Register models/attributes (or custom search aspects) and get grouped, typed results with titles and URLs—ideal for building unified search pages in Laravel apps. | 1,373 | 1,381 | 110 | 79K | 0 | 25.4 | 25.7 | MIT | 8 months ago | |
| spatie/laravel-model-flags | 0.93 | A Laravel trait that adds flags to Eloquent models without migrations, plus scopes to query flagged models. Useful for tracking process state and building idempotent, restartable code like Artisan commands. | 454 | 455 | 22 | 62K | 0 | 15.7 | 31.9 | MIT | 6 months ago | |
| spatie/laravel-visit | 0.93 | Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. | 159 | 160 | 9 | 756 | 0 | 11.0 | 11.1 | MIT | 7 months ago | |
| spatie/laravel-model-states | 0.92 | Add state behaviour to Eloquent models by combining the state pattern and state machines. Define each state as a class, cast it on your model, handle database serialization automatically, and transition between states easily. | 1,307 | 1,309 | 107 | 666K | 0 | 40.1 | 44.0 | MIT | 3 days ago | |
| spatie/laravel-view-models | 0.92 | Move complex view-prep logic out of controllers into dedicated Laravel view model classes. Extend Spatie\ViewModels\ViewModel to transform data for views, expose computed properties, and keep templates clean and focused. | 1,093 | 1,100 | 60 | 85K | 0 | 18.8 | 27.6 | MIT | 8 months ago | |
| spatie/laravel-model-info | 0.91 | Inspect Laravel Eloquent models to discover their file name, table name, attributes (name/type) and relations (name/type/related model). Also includes a ModelFinder to automatically locate all models in your application. | 182 | 183 | 23 | 44K | 0 | 14.7 | 34.7 | MIT | 8 months ago | |
| spatie/laravel-model-cleanup | 0.91 | Deprecated: use Laravel’s built-in Prunable. Spatie’s laravel-model-cleanup deletes unneeded Eloquent records via a cleanUp() configuration per model, and an artisan command to prune records older than a given age or matching custom rules. | 394 | 399 | 43 | 293 | 0 | 5.5 | 2.4 | MIT | 5 years ago | |
| dcat/laravel-softdeletes | 0.85 | dcat/laravel-softdeletes adds enhanced soft delete support to Laravel Eloquent models. Cascade deletes and restores across related records, keep data consistent, and avoid unique constraint conflicts from trashed rows, all through simple traits with minimal configuration. | 36 | 36 | 3 | 3 | 3 | 1.0 | 0.9 | MIT | 5 years ago | |
| dyrynda/laravel-cascade-soft-deletes | 0.85 | Adds cascading soft deletes to Laravel Eloquent models via a simple trait. When a parent model is soft deleted or restored, its related models are soft deleted or restored too, keeping data consistent without extra observers or manual event wiring. | 1,176 | 1,180 | 86 | 181K | 0 | 16.2 | 32.3 | MIT | 7 months ago | |
| julianstark999/laravel-model-iid | 0.85 | Laravel package that adds a compact, auto-incrementing IID column to Eloquent models, giving records a short human-friendly identifier for URLs, support tickets, and admin views while UUIDs or ULIDs remain the real primary key. | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 5 years ago | |
| iatstuti/laravel-cascade-soft-deletes | 0.85 | Laravel Cascade Soft Deletes adds an Eloquent trait that automatically cascades soft deletes, restores, and force deletes to related models, keeping parent and child records consistent without custom model event code. | 1,176 | 1,180 | 86 | 3K | 0 | 16.2 | 7.5 | MIT | 7 months ago | |
| spatie/laravel-queued-db-cleanup | 0.85 | Safely delete large numbers of Laravel database records by dispatching non-overlapping queued cleanup jobs. Deletes in small chunks to reduce locks and avoid timeouts, automatically re-dispatching until the query’s records are gone. | 81 | 81 | 11 | 19K | 0 | 5.8 | 32.6 | MIT | 1 year ago | |
| f9webltd/laravel-deletable | 0.85 | — | 158 | 158 | 8 | 2K | 2 | 12.0 | 15.8 | MIT | 7 months ago | |
| gigerit/laravel-cascade-delete | 0.85 | gigerit/laravel-cascade-delete brings trait-based cascade deletes to Laravel Eloquent models, automatically removing related records when a parent is deleted. Prevent orphaned rows without fragile DB foreign keys and keep your data consistent and relationships tidy. | 5 | 5 | 2 | 789 | 0 | 19.8 | 34.4 | MIT | 1 week ago | |
| cesargb/laravel-cascade-delete | 0.85 | — | 20 | 20 | 4 | 3K | 0 | 13.8 | 30.7 | MIT | 8 months ago | |
| incompass/soft-deletable-bundle | 0.85 | A Symfony bundle that adds soft-delete support to Doctrine entities. Mark records as deleted without removing them from the database, automatically filter them from normal queries, and restore them when needed, helping preserve data history and build safer deletion workflows. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| romanzipp/laravel-previously-deleted | 0.84 | Laravel package for handling previously deleted Eloquent models. It helps you detect records that were soft-deleted in the past and use that information when validating, restoring, or creating new entries, helping avoid duplicate or conflicting data. | 3 | 3 | 0 | 154 | 0 | 0.3 | 22.1 | MIT | 6 years ago | |
| spatie/laravel-sluggable | 0.84 | Generate unique slugs for Eloquent models on create or update via a Sluggable attribute or HasSlug trait. Includes collision suffixes, translatable slugs, and self-healing URLs with 308 redirects. | 1,560 | 1,586 | 190 | 867K | 0 | 43.5 | 44.5 | MIT | 1 week ago |
How can I help you explore Laravel packages today?