From 2159df680246e0ede660c7fb7231e126bf8e6451 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 25 Mar 2015 15:58:37 +0100 Subject: [PATCH] Update GoogleChartController.php Fixed chart. --- app/Http/Controllers/GoogleChartController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.php index b16301cfdc..d7b06835ee 100644 --- a/app/Http/Controllers/GoogleChartController.php +++ b/app/Http/Controllers/GoogleChartController.php @@ -235,7 +235,9 @@ class GoogleChartController extends Controller // query! $start = Session::get('start', Carbon::now()->startOfMonth()); $end = Session::get('end', Carbon::now()->endOfMonth()); - $set = TransactionJournal::leftJoin( + $set = TransactionJournal:: + where('user_id',Auth::user()->id) + ->leftJoin( 'transactions', function (JoinClause $join) { $join->on('transaction_journals.id', '=', 'transactions.transaction_journal_id')->where('amount', '>', 0);