public function afterLogin() { if ($this->trashed()) { $this->last_login = $this->freshTimestamp(); $this->restore(); Mail::sendTo($this, 'rainlab.user::mail.reactivate', ['name' => $this->name]); Event::fire('rainlab.user.reactivate', [$this]); } else { parent::afterLogin(); } Event::fire('rainlab.user.login', [$this]); }
/** * After login event * @return void */ public function afterLogin() { parent::afterLogin(); Event::fire('backend.user.login', [$this]); }