refine rate issues
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Config extends Model
|
||||||
|
{
|
||||||
|
// Table Name
|
||||||
|
protected $table = 'Config';
|
||||||
|
|
||||||
|
// Timestamps
|
||||||
|
public $timestamps = 'false';
|
||||||
|
}
|
||||||
@@ -139,6 +139,7 @@ class MoonCalc {
|
|||||||
|
|
||||||
//Get the configuration from the config table
|
//Get the configuration from the config table
|
||||||
$config = DB::table('Config')->get();
|
$config = DB::table('Config')->get();
|
||||||
|
dd($config);
|
||||||
//Calculate refine rate
|
//Calculate refine rate
|
||||||
$refineRate = $config->RefineRate / 100.00;
|
$refineRate = $config->RefineRate / 100.00;
|
||||||
//Calculate the current time
|
//Calculate the current time
|
||||||
|
|||||||
Reference in New Issue
Block a user