mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-03 21:34:35 +00:00
24 lines
446 B
PHP
24 lines
446 B
PHP
<?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');
|
|
}
|
|
}
|