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.
27 lines
528 B
27 lines
528 B
<?php |
|
|
|
namespace App\Models; |
|
|
|
use App\Traits\UUID; |
|
use Illuminate\Database\Eloquent\Model; |
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|
|
|
class BarangKeluar extends Model |
|
{ |
|
use HasFactory, UUID; |
|
protected $table = 'barang_keluars'; |
|
|
|
protected $fillable = [ |
|
'asset_id', |
|
'jumlah', |
|
'tanggal_keluar', |
|
'penerima_barang', |
|
'exit_warehouse', |
|
'keterangan', |
|
]; |
|
|
|
public function asset() |
|
{ |
|
return $this->belongsTo(m_asset::class, 'asset_id'); |
|
} |
|
}
|
|
|