Skip to main content

JuanDMeGon/Laravel-from-Scratch

17 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);
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.