Files
mylesen/app/Models/EpbtBpBil.php

22 lines
475 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EpbtBpBil extends Model
{
use HasFactory;
protected $connection = 'second_mysql';
protected $table = 'bp_bil';
protected $primaryKey = 'nobil';
public $incrementing = false;
protected $keyType = 'string';
public function bil_items(){
return $this->hasMany(EpbtBpBilItem::class, 'nobil', 'nobil');
}
}