1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 15:55:14 +00:00
pixelfed/app/Models/GroupComment.php
2024-07-09 23:16:05 -06:00

24 lines
422 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Profile;
class GroupComment extends Model
{
use HasFactory;
public $guarded = [];
public function profile()
{
return $this->belongsTo(Profile::class);
}
public function url()
{
return '/group/' . $this->group_id . '/c/' . $this->id;
}
}