PHP code example of dvsoftsrl / laravel-attributechangelog
1. Go to this page and download the library: Download dvsoftsrl/laravel-attributechangelog library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dvsoftsrl / laravel-attributechangelog example snippets
use DvSoft\AttributeChangeLog\Traits\LogsAttributeChange;
use Illuminate\Database\Eloquent\Model;
class MyModel extends Model
{
use LogsAttributeChange;
protected $fillable = ['name', 'status'];
}