Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

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.