I statred creating project in Laravel. One of his method adds images to storage/app/public. To make this operation I had to call method:
php artisan storage:link
On my local server (I use to Xamp) it works perfectly. I have a problem after updating files on the external server. When I try open link to files in storage/app/public browser returns "error 404".
I wanted to call storage::link method on external server, but it didn't work (server blocks symlink() method).
I want to ask you do you know how resolve this problem? I have idea calling this method on local server, but with server url in parameters, but I don't know how do it.
Route::get('/storage-link', function (){
\Illuminate\Support\Facades\Artisan::call('storage:link');
});
Add this in web.php and hit the URL once and then remove it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.