From f2aff7518be55da0fd250e04a4bfc1bbbd5a3d0a Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 2 Aug 2022 14:36:09 -0400 Subject: data model, query and storage works, frontend display basic last report --- app/Models/Rates.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/Models/Rates.php (limited to 'app/Models/Rates.php') diff --git a/app/Models/Rates.php b/app/Models/Rates.php new file mode 100644 index 0000000..5cabf1e --- /dev/null +++ b/app/Models/Rates.php @@ -0,0 +1,23 @@ +belongsTo(Currency::class, 'currency_id'); + } + public function relative() + { + return $this->belongsTo(Currency::class, 'relative_id'); + } +} -- cgit v1.2.3