1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/app/Contact.php

19 lines
278 B
PHP
Raw Normal View History

2019-06-06 04:31:25 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
public function user()
{
return $this->belongsTo(User::class);
}
2019-06-07 03:13:32 +00:00
public function adminUrl()
{
2019-06-19 01:49:31 +00:00
return url('/i/admin/messages/show/' . $this->id);
2019-06-07 03:13:32 +00:00
}
2019-06-06 04:31:25 +00:00
}