public function afterLogin()
    {
        $this->last_login = $this->freshTimestamp();

        if ($this->trashed()) {
            $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]);
    }
public function afterLogin()
    {
        $this->last_login = $this->freshTimestamp();

        if ($this->trashed()) {
            $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]);
    }
public function afterLogin ( ) { $ this -> last_login = $ this -> freshTimestamp ( ) ; if ( $ this -> trashed ( ) ) { $ 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
After login event