turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Models/BugTrackerAuthor.php
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

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');
}
}