mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
19 lines
290 B
PHP
19 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}");
|
|
}
|
|
}
|