Fatal error: Class 'Illuminate\Foundation\Application' not found
2016-05-03 20:28
741 查看
Fatal error: Class ‘Illuminate\Foundation\Application’ not found
question
I am getting following error when I open my site which is made using laravel 5 Fatal error: Class 'Illuminate\Foundation\Application' not found in C:\cms\bootstrap\app.php on line 14 I have tried removing vendor folder and composer.lock file and running composer install it's not working I tried running PHP artisan optimize but it shows error Fatal error: Class'Illuminate\Foundation\Application' not found Is there any way to solve this problem? Edited: This problem aroused as soon as I used the php artisan make:model Page command which did create the model but then the above error gets displayed when I access the site Also If use the Larvel's Local Development Server no such problem arises only if I use wamp server
Solution
In my situation, I didn't have the full vendor dependencies in place (composer file was messed up during original install) - so running any artisan commands caused a failure. I was able to use the --no-scripts flag to prevent artisan from executing before it was included. Once my dependencies were in place, everything worked as expected. composer update --no-scripts
相关文章推荐
- 手机与pc服务器通信那点事
- android AsyncTask介绍
- Android Scroller完全解析,关于Scroller你所需知道的一切
- android自定义View基础
- 零基础二十分钟搭建SAE微信个人号后台
- 十四、模版方法设计模式
- Android开发学习中的问题2016-5-03手动创建活动
- IOS杂记
- Android自定义dialog
- Android Studio导入Fresco
- Android:Intent传递数据的几种类型和源码实现
- 使用Android Studio导入安卓源码
- Android的startActivityForResult()与onActivityResult()与setResult()参数分析,activity带参数的返回
- App程序二次退出
- untiy 3d ShaderLab_第6章_VertexLit渲染路径_3_顶点照明和Unity存放光源的第二种方式
- SQLite使用_android
- Android系统篇之----Android中的智能指针
- JAVA版的微信红包算法
- iOS iPhone屏幕尺寸、分辨率及适配
- iOS 数组学习