mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
23 lines
438 B
PHP
23 lines
438 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* This model is used with the multi-database tenancy approach.
|
|
*/
|
|
class Comment extends Model
|
|
{
|
|
protected $guarded = [];
|
|
|
|
protected $table = 'comments';
|
|
|
|
public $timestamps = false;
|
|
|
|
public function post(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Post::class);
|
|
}
|
|
}
|