Laravel 8 storage_path() {#collection-method}
storage_path
函数返回 storage
目录的完整路径。您亦可使用 storage_path
函数来生成 storage
目录下特定文件的完整路径:
$path = storage_path();
$path = storage_path('app/file.txt');
storage_path
函数返回 storage
目录的完整路径。您亦可使用 storage_path
函数来生成 storage
目录下特定文件的完整路径:
$path = storage_path();
$path = storage_path('app/file.txt');