Files
aso/app/Models/OrganizationUser.php
Linksehat Staging Server 70fc1579e7 update
2024-07-12 08:41:18 +07:00

21 lines
449 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class OrganizationUser extends Model
{
use HasFactory;
protected $table = 'organization_user';
protected $connection = 'mysql';
protected $fillable = [
'organization_id',
];
public function organization(){
return $this->hasOne(Organization::class, 'id', 'organization_id');
}
}