mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
25 lines
445 B
PHP
25 lines
445 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Stancl\Tenancy\Database\Concerns\BelongsToTenant;
|
|
|
|
class Post extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
protected $guarded = [];
|
|
|
|
public $timestamps = false;
|
|
|
|
public function comments()
|
|
{
|
|
return $this->hasMany(Comment::class);
|
|
}
|
|
|
|
public function scoped_comments()
|
|
{
|
|
return $this->hasMany(Comment::class);
|
|
}
|
|
}
|