PaymentController.php 423 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Controllers\Seller;
  3. use App\Models\Payment;
  4. use Auth;
  5. class PaymentController extends Controller
  6. {
  7. /**
  8. * Display a listing of the resource.
  9. *
  10. * @return \Illuminate\Http\Response
  11. */
  12. public function index()
  13. {
  14. $payments = Payment::where('seller_id', Auth::user()->id)->paginate(9);
  15. return view('seller.payment_history', compact('payments'));
  16. }
  17. }