hasMany(TransaksiDetail::class, 'transaksi_id'); } public function user() { return $this->belongsTo(User::class); } }