pixelfed/app/Contact.php

19 lines
278 B
PHP
Raw Permalink 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
}