dari laptop
This commit is contained in:
21
app/Models/EpbtBpBil.php
Normal file
21
app/Models/EpbtBpBil.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user