Question Details

No question body available.

Tags

php laravel storage assets laravel-12

Answers (1)

November 1, 2025 Score: 3 Rep: 2,035 Quality: Low Completeness: 50%

After digging in the documentation, and finding nothing that would point me to solve the issue, I started digging inside the vendor/laravel/ codebase finding how the storage:link command is created. Guess what? To create the symlinks with a relative path, instead of the absolute path, there's a flag artisan storage:link --relative that will do the job. Yet this is not in the documentation nor if one enters the cli command artisan storage --help.

But there´s more... to be able to use the command artisan storage:link --relative the symfony/filesystem package must be installed via composer.

If someone falls in this "trap" the solution is explained above.