Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

santo_f's avatar

How to recreate a symbolic on production with forge ?

Hey, I'm going on production server using forge. I can not figure out how to recreate a symbolic. I've create a route that run the artisan storage:link command but I still can't see images.

Route::get('/symlink', function () {Artisan::call('storage:link'); });

Can you help me with that ? Thanks :)

0 likes
4 replies
martinbean's avatar

@santo_f The creation of the symbolic link should be done in your deployment script, not via a HTTP request.

santo_f's avatar

@martinbean Thanks for your quick answer :) what should I add in the Deploy Script section ?

Tray2's avatar
Tray2
Best Answer
Level 73

You can always ssh into the server and run php artisan storage:link

Please or to participate in this conversation.