You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
592 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Keuangan extends Model
{
use SoftDeletes;
protected $table = 'keuangan';
protected $fillable = [
'tabungan_id',
'transaksi_id',
'tipe',
'jumlah',
'total_kas',
'keterangan',
];
public function tabungan(){
return $this->hasOne('App\Models\Tabungan','id','tabungan_id');
}
public function transaksi(){
return $this->hasOne('App\Models\Transaksi','id','transaksi_id');
}
}