fixed storage path

This commit is contained in:
Denis Duliçi
2023-08-24 11:46:16 +03:00
parent 4d7aca4c9d
commit aa1251a1c6
7 changed files with 14 additions and 7 deletions

View File

@ -4,6 +4,7 @@ namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Storage;
class StorageTempClear extends Command
{
@ -31,7 +32,7 @@ class StorageTempClear extends Command
{
$filesystem = app(Filesystem::class);
$path = storage_path('app/temp');
$path = Storage::path('app/temp');
foreach ($filesystem->glob("{$path}/*") as $file) {
$filesystem->delete($file);