前言
运行命令 php artisan storage:link
报错提示信息:
ErrorException : symlink() has been disabled for security reasons
at /vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
248| */
249| public function link($target, $link)
250| {
251| if (! windows_os()) {
> 252| return symlink($target, $link);
253| }
254|
255| $mode = $this->isDirectory($target) ? 'J' : 'H';
256|
Exception trace:
1 symlink("/storage/app/public", "/public/storage")
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
2 Illuminate\Filesystem\Filesystem::link("/storage/app/public", "/public/storage")
/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35
Please use the argument -v to see more details.