app/User.php
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); } //}