Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save lozadaOmr/20f50e274211893256d5 to your computer and use it in GitHub Desktop.

Select an option

Save lozadaOmr/20f50e274211893256d5 to your computer and use it in GitHub Desktop.

User.php

//User model

/**
  * Get the password and Hash it before saving to the database.
  *
  * @param     string    $value
  */
  public function setPasswordAttribute($value)
  {
      $this->attributes['password'] = Hash::make($value);
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment