Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
加载资产文件时发生Laravel NotFoundHttpException_Laravel_Laravel 5 - Fatal编程技术网

加载资产文件时发生Laravel NotFoundHttpException

加载资产文件时发生Laravel NotFoundHttpException,laravel,laravel-5,Laravel,Laravel 5,在加载资产文件映像时,我在Laravel5.2上遇到了一个奇怪的问题。在浏览器上指定图像的绝对路径时,我收到一个错误: NotFoundHttpException in RouteCollection.php line 161: 权限已设置,并且.htaccess文件是标准文件。当我访问“图像文件”文件夹时,所有文件都会显示 例如: domain.com/images/ : this lists all the images in the folder

在加载资产文件映像时,我在Laravel5.2上遇到了一个奇怪的问题。在浏览器上指定图像的绝对路径时,我收到一个错误:

NotFoundHttpException in RouteCollection.php line 161:
权限已设置,并且.htaccess文件是标准文件。当我访问“图像文件”文件夹时,所有文件都会显示

例如:

domain.com/images/                    : this lists all the images in the folder

domain.com/images/image.png           : I get the NotFoundHttpException

是否存在问题?

刚刚解决了问题,这是一个用户权限问题:

chown-R user:usergroup文件夹/*已修复