I am trying to paginate Model result, but I am getting "Method paginate does not exist.". Here is my code:
return view('transaction::admin.index',[ 'transactions' => $transactions->paginate(20)->appends($request->except('page')), ]);
I need to get all records where users id equals current authenticated users id. Works well without paginate() method.