问题描述
我已经使用以下命令为我在Lumen中进行的项目创建用于存储公用文件夹的symnlink.=> php artisan storage:link
I have used the following command to create symnlink for storage public folder for my project which I'm doing in Lumen .=> php artisan storage:link
但是我在终端=>
存储"名称空间中没有定义命令.
There are no commands defined in the "storage" namespace.
另一个查询是,尽管我能够上载存储文件夹中的文件,但如何访问,为此我需要一些示例代码.请帮助.
Another query is though I'm able to upload file in storage folder , how I'm able to access, I need some sample code for this. Kindly help.
推荐答案
我是通过此unix命令创建的:
I created by this unix command :
ln -s源,其symnlinkfolderpath例如:
ln -s sourceforwhich symnlinkfolderpathe.g.:
ln -s/data/html/projectfolder/storage/app/public/data/html/projectfolder/public/storage
ln -s /data/html/projectfolder/storage/app/public /data/html/projectfolder/public/storage
这篇关于如何为流明创建用于存储公用文件夹的符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!