/
home
/
obinna
/
html
/
cravings
/
app
/
Upload File
HOME
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Jenssegers\Mongodb\Auth\User as Authenticatable; use Illuminate\Contracts\Auth\CanResetPassword; use Illuminate\Auth\Passwords\CanResetPassword as ResetPassword; use App\Notifications\ResetPasswordNotification; class User extends Authenticatable implements CanResetPassword { use Notifiable, ResetPassword; public $timestamps = false; protected $collection = 'users'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'username', 'email', 'telephone', 'location', 'password', 'api_token', 'provider', 'provider_id', 'avatar', 'verification_token', 'nickname', 'created_at', 'role', 'verification_start' ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * Send the password reset notification. * * @param string $token * @return void */ public function sendPasswordResetNotification($token) { $this->notify(new ResetPasswordNotification($token)); } }