2016-05-02 04:20:50 +08:00
|
|
|
<?php namespace BookStack;
|
2015-09-06 03:25:57 +08:00
|
|
|
|
|
|
|
class EmailConfirmation extends Model
|
|
|
|
{
|
|
|
|
protected $fillable = ['user_id', 'token'];
|
|
|
|
|
2016-05-02 04:20:50 +08:00
|
|
|
/**
|
|
|
|
* Get the user that this confirmation is attached to.
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
2015-09-06 03:25:57 +08:00
|
|
|
public function user()
|
|
|
|
{
|
2016-05-02 04:20:50 +08:00
|
|
|
return $this->belongsTo(User::class);
|
2015-09-06 03:25:57 +08:00
|
|
|
}
|
2016-05-02 04:20:50 +08:00
|
|
|
|
2015-09-06 03:25:57 +08:00
|
|
|
}
|