加载资产文件(图片)时,我在Laravel 5.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
问题可能出现的任何问题?
答案 0 :(得分:1)
刚刚发现问题,这是一个用户权限问题:
SELECT email FROM
(SELECT email FROM users JOIN actions
ON users.email = actions.user_id
WHERE action = 'view_product'),
(SELECT email FROM users JOIN actions
ON users.email = actions.user_id
WHERE action = 'add_product_to_cart')
修复了它