如何在Laravel 5.5中显示保存的图像?

时间:2018-11-26 07:28:13

标签: php laravel laravel-5.5 laravel-request

我正在尝试在const RootQuery = new GraphQLObjectType({ name: "RootQueryType", fields: { ...<Other queries>... addBlukIntents: { type: new GraphQLList(intent), args: { list_of_rows_from_csv: { type: a_csv_row }, customer_id: { type: GraphQLInt } }, resolve(parent, args) { console.log(args) } } } })元素中显示存储的图像。我已经使用Laravel内置函数保存了图像。

img

根据上述脚本,图像将保存到:

存储>应用>头像

我也尝试过将它们保存在这里:

存储>应用>公共>头像

之后,我使用了Artisan命令:$path = $request->file('image')->store('avatars');

然后在前端:

php artisan storage:link

但是,图像仍然不显示。有人可以让我知道我错了,以便我可以解决它吗?我将不胜感激。

0 个答案:

没有答案
相关问题