1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00
pixelfed/app/UserInvite.php

19 lines
290 B
PHP
Raw Permalink Normal View History

2019-02-16 03:13:24 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserInvite extends Model
{
public function sender()
{
return $this->belongsTo(Profile::class, 'profile_id');
}
2019-02-16 03:13:24 +00:00
public function url()
{
return url("/i/invite/code/{$this->key}/{$this->token}");
2019-02-16 03:13:24 +00:00
}
}