Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Revive

Laravel Revive Laravel Package

devanoxltd/laravel-revive

Laravel Revive is a lightweight package for bringing deleted or inactive data back into your Laravel application. It offers a simple, expressive API and seamless Eloquent integration, making recovery workflows easy to add without extra boilerplate.

View on GitHub
Deep Wiki
Context7

Laravel Revive is a lightweight package for restoring soft-deleted Eloquent models with a clean, predictable API. Add the provided trait to a model and bring records back—ideal for admin panels, recycle-bin workflows, and accidental-deletion recovery.

  • Restore single or bulk soft-deleted records
  • Simple trait-based Eloquent integration
  • Clean revive() API for recovery workflows
  • Works with Laravel’s existing soft delete conventions
  • Configurable behavior for flexible use cases
Frequently asked questions about Laravel Revive
What is Laravel Revive used for?
Laravel Revive adds restore tooling for soft-deleted Eloquent models in Laravel applications. It is designed to bring back single or bulk records, cascade restores across relationships, and track what was revived using a lightweight trait and Artisan commands. It is not a general backup package; it focuses on restoring records that use Laravel's SoftDeletes behavior.
How do I install Laravel Revive in a Laravel application?
Install it with Composer using composer require devanoxltd/laravel-revive. After installation, check the package README for any configuration publishing or migration steps, since the provided overview does not detail them. Then add the supplied trait to models where you want revive tracking and use the Artisan commands to inspect available restore actions.
Can Laravel Revive restore multiple soft-deleted records at once?
Yes. The package is described as supporting both single-record and bulk restores for soft-deleted Eloquent models. Use the provided Artisan commands or trait methods to select multiple records and restore them in one operation. Test bulk restores in a staging database first so relationship cascades and tracking records behave as expected.
How does cascade restore across relationships work in Laravel Revive?
Laravel Revive is designed to cascade restores across Eloquent relationships when a parent model is revived. That means related soft-deleted records can be brought back in the same operation instead of being restored manually one by one. Review the README for the exact relationship configuration and test each cascade path before relying on it in production.
How do I track which records were revived with Laravel Revive?
The package includes a lightweight trait for tracking what was revived. Apply the trait to the relevant Eloquent models and let it record restore activity when the package's restore methods or commands run. Check the package documentation for the exact tracking fields and how to query the recorded history.
Which Laravel and PHP versions does Laravel Revive support?
The provided context does not list the exact Laravel and PHP version constraints for this package. Before installing, verify the require and require-dev sections in the package's composer.json on Packagist or GitHub. Run the package's test suite or a staging spike against your application's Laravel version to confirm compatibility.
Is Laravel Revive safe to use in production?
It is intended for restoring soft-deleted Eloquent records, which is a data-changing operation, so treat it like any production data tool: back up first, restrict command access, and test in staging. The package has low visible adoption, with 10 stars and 0 dependents, and appears to be single-maintainer, so pin an exact version and review the release history. The MIT license lets you fork or vendor it if upstream maintenance stalls.
Can I customize or override Laravel Revive's restore behavior?
The package is built around a trait and Artisan commands, so customization likely happens through the trait on your models and any publishable configuration described in the README. Because the exact override points are not listed in the provided overview, inspect the source and configuration after installing. If your needs diverge, the MIT license allows an internal fork.
Does Laravel Revive provide Artisan commands for restores?
Yes. The package advertises handy Artisan commands alongside its trait-based restore tooling. Use php artisan list after installation to see the available revive commands and their options. Avoid running destructive or data-changing commands in non-interactive CI unless you have a dedicated test database and explicit safeguards.
What are alternatives to Laravel Revive for restoring soft-deleted models?
Laravel's built-in restore and restoreQuietly methods on soft-deletable models are the baseline alternative, and you can wrap them in your own Artisan commands. Other soft-delete management packages may offer similar bulk or cascade restore features, so compare their Laravel version support and maintenance activity. Laravel Revive is most useful when you specifically want its trait-based tracking and relationship cascade behavior.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo