Level 2
Ask your hosting provider to allow using the symlink function. It seems to have been disabled by them
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I try to create symlink in shared hosting but it returns like this. How to fix it?
$ php artisan storage:link
Error
Call to undefined function Illuminate\Filesystem\symlink()
at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:335
331▕ */
332▕ public function link($target, $link)
333▕ {
334▕ if (! windows_os()) {
➜ 335▕ return symlink($target, $link);
336▕ }
337▕
338▕ $mode = $this->isDirectory($target) ? 'J' : 'H';
339▕
+14 vendor frames
15 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Ask your hosting provider to allow using the symlink function. It seems to have been disabled by them
Please or to participate in this conversation.