/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $customers=Customer::all()->paginate(10);; $customers = Customer::paginate(10); // $customers->setBaseUrl('securityInc/public/url'); // $customers = DB::table('customers')->paginate(10); // // $users = User::All(); // // return View::make('users.index',compact('users')); return view('admin.customer.index', compact('customers')); // return view('admin.customer.index'); }
public function getCustomerList(Customer $customer) { $customers = $customer->paginate(25); return view('customers.lists')->with(compact('customers')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $customer = Customer::paginate(5); return view('customers.index', compact('customer')); }