title: Filling guarded properties in Laravel
body: <p>I want to keep 'password' guarded for security reasons but I also need to fill it when I create a new user. </p>
  
  <p>I have tried many ways and all of them insert the model without the 'password'. This is my most recent attempt.</p>
  
  <p>My Controller:</p>
  
  <pre><code> if ($validator-&gt;fails()) {
          echo 'fail';
      } else {
          $hash = Hash::make(Input::get('password'));
  
          //  input new row
          $user = new User;
          $user-&gt;email = Input::get('email');
          $user-&gt;password = $hash;
          $user-&gt;save();
          return $user.$hash;
      }
  </code></pre>
  
  <p>My User Model Code:</p>
  
  <pre><code>protected $hidden = ['password', 'remember_token'];
  
  protected $guarded = ['password'];
  
  protected $fillable = ['email'];
  </code></pre>
  
  <p>I've tried making password fillable, I've tried using create().</p>
  
  <p>Let me know if any more information is required. Thanks!</p>