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