1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00
pixelfed/app/UserInvite.php
2020-04-26 23:25:35 -06:00

18 lines
290 B
PHP

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