Exemplo n.º 1
0
 public function report()
 {
     $from = \Request::get('from');
     $to = \Request::get('to');
     $transactions = Transaction::whereDate('date', '>=', date($from))->whereDate('date', '<=', date($to))->orderBy('id', 'DESC');
     return view('transaction.report', compact('transactions', 'from', 'to'));
 }