for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Translatable\Events;
class TranslationHasBeenSet
{
/** @var \Spatie\Translatable\Translatable */
public $model;
/** @var string */
public $key;
public $locale;
public $oldValue;
public $newValue;
public function __construct($model, string $key, string $locale, $oldValue, $newValue)
$this->model = $model;
$this->key = $key;
$this->locale = $locale;
$this->oldValue = $oldValue;
$this->newValue = $newValue;
}