1
0
Fork 0
pixelfed/app/EmailVerification.php

22 lines
363 B
PHP
Raw Normal View History

2018-06-14 05:30:43 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EmailVerification extends Model
{
public function url()
{
2018-08-28 03:07:36 +00:00
$base = config('app.url');
$path = '/i/confirm-email/'.$this->user_token.'/'.$this->random_token;
return "{$base}{$path}";
2018-06-14 05:30:43 +00:00
}
2019-02-03 21:48:34 +00:00
public function user()
{
return $this->belongsTo(User::class);
}
2018-06-14 05:30:43 +00:00
}