model.auth.beforeImpersonate

Triggered in October\Rain\Auth\Manager.

Called after the model is booted

Example usage:

$model->bindEvent('model.auth.beforeImpersonate', function (\October\Rain\Database\Model|false $oldUser) use (\October\Rain\Database\Model $model) {
    \Log::info($oldUser->full_name . ' is now impersonating ' . $model->full_name);
});