php artisan storage:link what it does? I need to mimic the behavior of this function by hand because I have no access to the CLI on the live server. Any help?
It creates a symlink to your storage folder so that you can access it easier.
is there a way for me to make it on a server (Linux) without CLI access?
The symlink makes files stored in the storage directory accessible from the web. You can change the local disk config (in config/filesystems.php) to a public path rather than the storage_path()
You should be able to do an artisan call in a method.
Artisan::call('storage:link');
This is the solution. I finally found how the previous guys did it. (this is not my project, I just get it under maintenance).
You can code CMD commands into the Laravel, but you would have to code it to be done only once. I haven't looked but I am guessing it would be here.
https://laravel.com/docs/8.x/artisan
But cmding into a server is the best way.
Please sign in or create an account to participate in this conversation.