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
Percy
Percy2mo ago
Project ID: N/A
Thomas Mendonça
N/A
Attacler/Bart
Attacler/Bart2mo ago
maybe add it in the start command?
Thomas Mendonça
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
Thomas Mendonça
my local is this
No description
Thomas Mendonça
this in Railway
No description
Thomas Mendonça
this storagepublic is weird
Jack
Jack2mo ago
What’s your start command?
Jack
Jack2mo ago
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...
Thomas Mendonça
I tried, but permission was denied
Jack
Jack2mo ago
What’s your /config/filesystems.php look like?
Jack
Jack2mo ago
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.
Thomas Mendonça
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?
Jack
Jack2mo ago
Sorry, I don’t really know. I could look more into it when I get time if you want.