refine rate issues

This commit is contained in:
2018-10-25 22:48:26 -05:00
parent 27817f82ae
commit 6c0913955f
2 changed files with 15 additions and 0 deletions

14
app/Config.php Normal file
View File

@@ -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';
}

View File

@@ -139,6 +139,7 @@ class MoonCalc {
//Get the configuration from the config table
$config = DB::table('Config')->get();
dd($config);
//Calculate refine rate
$refineRate = $config->RefineRate / 100.00;
//Calculate the current time