first commit
This commit is contained in:
24
app/Http/Controllers/Customers/Transactions.php
Normal file
24
app/Http/Controllers/Customers/Transactions.php
Normal file
@ -0,0 +1,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'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user