mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:34:04 +00:00
Make the (Scoped)Comment model distinction clearer
This commit is contained in:
parent
47fe86c21e
commit
1f9a344f33
3 changed files with 7 additions and 3 deletions
|
|
@ -5,10 +5,15 @@ namespace Stancl\Tenancy\Tests\Etc;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* This model is not intended to be used with the single-database tenancy approach.
|
||||
*/
|
||||
class Comment extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
protected $table = 'comments';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function post(): BelongsTo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue