dkvhin/laravel-model-histories
Install
composer require dkvhin/laravel-model-histories
Publish Configs
php artisan vendor:publish --provider="Dkvhin\LaravelModelHistories\LaravelModelHistoriesServiceProvider" --tag="config"
php artisan vendor:publish --provider="Dkvhin\LaravelModelHistories\LaravelModelHistoriesServiceProvider" --tag="migrations"
Usage
Add interface and Trait to Your Model
use Dkvhin\LaravelModelHistories\HasHistories;
use Dkvhin\LaravelModelHistories\HasHistoriesTrait;
class User extends Model implements HasHistories
{
use HasHistoriesTrait;
/**
* Exclude from history
* @var array<string>
*/
public array $excludeFromHistory = [
'password'
];
}
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v13.0.0 | ^8.2 | ^11.0| | MIT | |
| v12.0.0 | ^8.2 | ^11.0| | MIT | |
| v11.0.3 | ^8.2 | ^11.0 | MIT | |
| v11.0.2 | ^8.2 | ^11.0 | MIT | |
| v11.0.1 | ^8.2 | ^11.0 | MIT | |
| v11.0.0 | ^8.2 | ^11.0 | MIT |