1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:34:04 +00:00
tenancy/tests/Etc/Comment.php

18 lines
330 B
PHP

<?php
namespace Stancl\Tenancy\Tests\Etc;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Comment extends Model
{
protected $guarded = [];
public $timestamps = false;
public function post(): BelongsTo
{
return $this->belongsTo(Post::class);
}
}