laravel maatwebsite/excel 数字显示科学技术法怎么解决
2个回答
2016-09-09
展开全部
1, 项目的composer.json 中添加
"maatwebsite/excel": "~2.1.0" 如果是 Laravel 4 则添加 "maatwebsite/excel": "~1.3" (确信版本正确,勿入坑,以下都是laravel 5步骤)
2, 执行 composer update maatwebsite/excel
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing maatwebsite/excel (v1.3.7)
- Installing maatwebsite/excel (v2.1.2)
Downloading: 100%
Writing lock file
Generating autoload files
> php artisan clear-compiled
> php artisan optimize
Generating optimized class loader
Compiling common classes
3,编辑 app/config/app.php
在代码中分别加入
"maatwebsite/excel": "~2.1.0" 如果是 Laravel 4 则添加 "maatwebsite/excel": "~1.3" (确信版本正确,勿入坑,以下都是laravel 5步骤)
2, 执行 composer update maatwebsite/excel
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing maatwebsite/excel (v1.3.7)
- Installing maatwebsite/excel (v2.1.2)
Downloading: 100%
Writing lock file
Generating autoload files
> php artisan clear-compiled
> php artisan optimize
Generating optimized class loader
Compiling common classes
3,编辑 app/config/app.php
在代码中分别加入
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询