/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('productTypes/index')->with('product_types', ProductType::paginate(Config::get('common.pagination'))); }