Skip to main content

JuanDMeGon/Laravel-from-Scratch

18 stars
1 code files
View JuanDMeGon/Laravel-from-Scratch on GitHub

app/User.php

Open in GitHub
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
 
class User extends Authenticatable implements MustVerifyEmail
{
//
public function setPasswordAttribute($password)
{
$this->attributes['password'] = bcrypt($password);
}
//
}