for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaTevaWeb\Translatable\Events;
use Illuminate\Database\Eloquent\Model;
class TranslationHasBeenSet
{
public $model;
public $field;
public $locale;
public $oldValue;
public $newValue;
public function __construct(Model $model, string $field, string $locale, $oldValue, $newValue)
$this->model = $model;
$this->field = $field;
$this->locale = $locale;
$this->oldValue = $oldValue;
$this->newValue = $newValue;
}