pixelfed/app/EmailVerification.php

16 lines
291 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()
{
$base = config('app.url');
$path = '/i/confirm-email/' . $this->user_token . '/' . $this->random_token;
return "{$base}{$path}";
}
}