How can I do php artisan storage:link in my laravel project?
I have a laravel project, I'm trying to upload it. I want to place a volume and run storage:link. How can I do it?
17 Replies
Project ID:
N/A
N/A
maybe add it in the start command?
I put it in the start command, but it didn't work
runs the command correctly, but the folders it picks up seem to be wrong
my local is this
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1242801905680515173/image.png)
this in Railway
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1242802007375482910/image.png)
this storagepublic is weird
What’s your start command?
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1242803258062540903/image.png)
Maybe try this? https://stackoverflow.com/a/58936108
Stack Overflow
Laravel storage link won't work on production
I'm using storage_path to save my images and I symbolic my storage folder to public_html
php artisan storage:link
On the local everything works fine, when I upload an image it will upload in stor...
I tried, but permission was denied
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1242806563971010570/image.png)
What’s your
/config/filesystems.php
look like?Looks like maybe the link could’ve been successful, odd that the path would appear like that though. Wanna try it to see if the files persist?
I tried a Laravel deployment and got the same path but it said the link already existed when I tried another deploy.
Always appears as being created again
And I don't know the link to access the storage
The application crashes when I run this command
It doesn't work, when I try to access the home page, it doesn't access
And I would like to persist the storage data, on a volume or something like that
someone?
Sorry, I don’t really know. I could look more into it when I get time if you want.