You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
735 B
36 lines
735 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use App\Models\Peti;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
||
|
class Transfer extends Model
|
||
|
{
|
||
|
use HasFactory, SoftDeletes;
|
||
|
protected $table = 'petis';
|
||
|
|
||
|
protected $fillable = [
|
||
|
'peti_id',
|
||
|
'tanggal',
|
||
|
'created_by',
|
||
|
'updated_by',
|
||
|
];
|
||
|
|
||
|
public function peti()
|
||
|
{
|
||
|
return $this->belongsTo(Peti::class, 'peti_id')->select(
|
||
|
'id',
|
||
|
'tipe_peti_id',
|
||
|
'customer_id',
|
||
|
'warehouse_id',
|
||
|
'date_pembuatan',
|
||
|
'kondisipeti_id',
|
||
|
'fix_lot',
|
||
|
'updated_by',
|
||
|
);
|
||
|
}
|
||
|
}
|