You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/UserInvite.php

19 lines
290 B
PHTML

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