From 54431e3bf500a15087d503e39e8f6f60f62be2d4 Mon Sep 17 00:00:00 2001 From: sausin Date: Fri, 14 Dec 2018 19:48:30 +0530 Subject: [PATCH] Update Dashboard.php --- app/Http/Controllers/Common/Dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Common/Dashboard.php b/app/Http/Controllers/Common/Dashboard.php index 91649058a..d4e9d6f2a 100644 --- a/app/Http/Controllers/Common/Dashboard.php +++ b/app/Http/Controllers/Common/Dashboard.php @@ -37,7 +37,7 @@ class Dashboard extends Controller public function index() { $this->today = Date::today(); - $this->financial_start = $financial_start = Date::parse(Setting::where('key', 'general.financial_start')->first()->value)->format('Y-m-d'); + $this->financial_start = $financial_start = Date::parse(setting('general.financial_start'))->format('Y-m-d'); list($total_incomes, $total_expenses, $total_profit) = $this->getTotals();