PHPackages                             chack1172/laravel-single-save - 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. chack1172/laravel-single-save

ActiveLibrary

chack1172/laravel-single-save
=============================

Optimize model saving with single save execution

1.0.0(2y ago)05MITPHPPHP ^7.4|^8.0

Since Jul 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chack1172/laravel-single-save)[ Packagist](https://packagist.org/packages/chack1172/laravel-single-save)[ Docs](https://github.com/chack1172/laravel-single-save)[ RSS](/packages/chack1172-laravel-single-save/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Single Save
===================

[](#laravel-single-save)

This package is designed to optimize the model saving process of your Laravel applications. Wrapping the code in a specific method callback performs a single database update at the end of the callback execution. This optimizes the application's performance, especially during complex transactions or scenarios with frequent model updates.

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

[](#installation)

1. Install the package using composer:

```
composer require chack1172/laravel-single-save
```

2. Add the Eloquent trait to your models:

```
