Re-enable timestamps in Earning and Spending models
MODIFY
app/Earning.php
app/Earning.php
@@ -5,8 +5,6 @@ namespace App;
use Illuminate\Database\Eloquent\Model;
class Earning extends Model {
- public $timestamps = false;
-
// Accessors
public function getFormattedAmountAttribute() {
return number_format($this->amount / 100, 2);

MODIFY
app/Spending.php
app/Spending.php
@@ -5,8 +5,6 @@ namespace App;
use Illuminate\Database\Eloquent\Model;
class Spending extends Model {
- public $timestamps = false;
-
// Accessors
public function getFormattedAmountAttribute() {
return number_format($this->amount / 100, 2);

Re-enable timestamps in Earning and Spending models