refine rate issues
This commit is contained in:
14
app/Config.php
Normal file
14
app/Config.php
Normal 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';
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user