more storage fixes

This commit is contained in:
Denis Duliçi
2023-08-24 15:44:10 +03:00
parent 0b45e4ed70
commit 02881945f8
12 changed files with 76 additions and 28 deletions

View File

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