Blame view

app/Http/Controllers/Customers/Transactions.php 484 Bytes
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  <?php
  
  namespace App\Http\Controllers\Customers;
  
  use App\Http\Controllers\Controller;
  use App\Models\Banking\Transaction;
  
  use Auth;
  
  class Transactions extends Controller
  {
  
      /**
       * Display a listing of the resource.
       *
       * @return Response
       */
      public function index()
      {
          $transactions = Transaction::getUserTransactions(Auth::user()->customer->id, 'revenues');
  
          return view('customers.transactions.index', compact('transactions'));
      }
  }