turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Models/BugTrackerAuthor.php

24 lines
446 B
PHP
Raw Normal View History

2024-08-06 16:06:40 +00:00
<?php
namespace App\Models;
use App\Models\auth\Account;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BugTrackerAuthor extends Model
{
use HasFactory;
protected $fillable = [
'name',
'account_id',
'realm_id'
];
public function account()
{
return $this->setConnection('mysql2')->belongsTo(Account::class, 'account_id', 'id');
}
}