mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-05 22:34:51 +00:00
19 lines
278 B
PHP
19 lines
278 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Contact extends Model
|
|
{
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function adminUrl()
|
|
{
|
|
return url('/i/admin/messages/show/' . $this->id);
|
|
}
|
|
}
|