pixelfed/app/EmailVerification.php
2018-08-28 03:07:36 +00:00

17 lines
292 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EmailVerification extends Model
{
public function url()
{
$base = config('app.url');
$path = '/i/confirm-email/'.$this->user_token.'/'.$this->random_token;
return "{$base}{$path}";
}
}