php - file_put_contents(C:\Users\FNRI\Desktop):无法打开流:没有这样的文件或目录
问题描述
clear:cache
在 000webhoso 中部署 laravel 项目时,如何使用 php artisan 之类的命令?
我尝试配置但仍然找不到解决方案
我需要使用迁移清除日志和缓存
php artisan clear:cache
错误:
file_put_contents(C:\Users\FNRI\Desktop\final\storage\framework/sessions/Jutrm2SkTQTO8H0jB1wnGXm5y8HUd7siBBtjh8Jz):无法打开流:没有这样的文件或目录
加载我的项目
解决方案
转到目录bootstrap > cache > config.php删除 config.php 文件。
如果你想打电话,php artisan clear:cache
那么你也可以创建它的路由文件
Route::get('/clear-cache', function() {
Artisan::call('cache:clear');
// return what you want
});
Route::get('/clear-view', function() {
Artisan::call('view:clear');
// return what you want
});
Route::get('/clear-config', function() {
Artisan::call('config:clear');
// return what you want
});
运行为
- domainname.com/clear-cache
- domainname.com/clear-view
- domainname.com/clear-config
推荐阅读
- ios - 为 Facebook 应用审查创建 iOS 构建文件时出现问题
- java - 适用于 Mac OS 的 Outlook(独立应用程序)加载项
- python - 使用 pip 安装“dbus 包”时遇到问题
- c# - 为什么在我的 TSP Little-algorythm 求解器实现中很少有单独的闭环?
- ruby - 在使用 Enumerable 时需要帮助
- rpa - 如何根据特定范围单击特定链接
- git - 将两个svn分支更改为一个git存储库后如何保持跟踪?
- c++ - 移除对 Windows SDK 版本的依赖
- oracle - 如何为同义词添加约束?
- safari - HTML5 视频无法在本地主机上的 Safari 中播放