<?php | |
namespace App; | |
use Illuminate\Contracts\Auth\MustVerifyEmail; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
use Illuminate\Notifications\Notifiable; | |
class User extends Model implements MustVerifyEmail | |
{ | |
use Notifiable; | |
/** | |
* The attributes that are mass assignable. | |
* | |
* @var array | |
*/ | |
protected $fillable = [ | |
'name', 'email', 'password', | |
]; | |
/** | |
* The attributes that should be hidden for arrays. | |
* | |
* @var array | |
*/ | |
protected $hidden = [ | |
'password', 'remember_token', | |
]; | |
/** | |
* The attributes that should be cast to native types. | |
* | |
* @var array | |
*/ | |
protected $casts = [ | |
'email_verified_at' => 'datetime', | |
]; | |
public function sessions() { | |
return $this->hasMany('App\Session'); | |
} | |
/** | |
* Determine if the user has verified their email address. | |
* | |
* @return bool | |
*/ | |
public function hasVerifiedEmail() | |
{ | |
// TODO: Implement hasVerifiedEmail() method. | |
} | |
/** | |
* Mark the given user's email as verified. | |
* | |
* @return bool | |
*/ | |
public function markEmailAsVerified() | |
{ | |
// TODO: Implement markEmailAsVerified() method. | |
} | |
/** | |
* Send the email verification notification. | |
* | |
* @return void | |
*/ | |
public function sendEmailVerificationNotification() | |
{ | |
// TODO: Implement sendEmailVerificationNotification() method. | |
} | |
/** | |
* Get the email address that should be used for verification. | |
* | |
* @return string | |
*/ | |
public function getEmailForVerification() | |
{ | |
// TODO: Implement getEmailForVerification() method. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment