public function sendActivationMail($user)
    {

        if ($user->activated || !$this->shouldSend($user)) {
            return;
        }

        $token = $this->activationRepo->createActivation($user);

        $link = route('user.activate', $token);

        $this->mailer->sendTo($user, $link);
    }
public function sendActivationMail($user)
    {

        if ($user->activated || !$this->shouldSend($user)) {
            return;
        }

        $token = $this->activationRepo->createActivation($user);

        $link = route('user.activate', $token);

        $this->mailer->sendTo($user, $link);
    }
public function sendActivationMail ( $ user ) { if ( $ user -> activated || ! $ this -> shouldSend ( $ user ) ) { return ; } $ token = $ this -> activationRepo -> createActivation ( $ user ) ; $ link = route ( 'user.activate' , $ token ) ; $ this -> mailer -> sendTo ( $ user , $ link ) ; }
Sends activation mail.
@param $user
Sends activation mail .