title: Laravel 4: how to make confirmation email?
body: <p>I have made until now an app with login/register and it works fine.
  After the registration a welcome email is sent.</p>
  
  <p>But what i would like to do is to send a link, within that mail, that only after clicking on it, it is possible to login.</p>
  
  <p>Like the common registration email for forum etc..</p>
  
  <p>Someone can help me please?</p>
  
  <p>This is the postRegister method:</p>
  
  <pre><code>public function postRegister()
  {
      $input = Input::all();
  
      $rules = array(
          'username' =&gt; 'required',
          'password' =&gt; 'required');
  
      $validation = Validator::make($input, $rules);
  
      if ($validation-&gt;passes()) {
  
          $password = $input['password'];
          $password = Hash::make($password);
  
          $user = new User;
          $user-&gt;username = $input['username'];
          $user-&gt;email = $input['email'];
          $user-&gt;password = $password;
  
              $mailer = new Mailers\UserMailer($user);
  
                   // var_dump($mailer);
  
                      $mailer-&gt;welcomeMail()-&gt;deliver();
  
                      $user-&gt;save();
  
          return Redirect::to('afterRegister');
      }
  
      return Redirect::back()-&gt;withInput()-&gt;withErrors($validation)-&gt;with('message', 'Validation Errors!');
  } 
  </code></pre>
  
  <p>Thank you</p>