Skip to content

Commit 99d926b

Browse files
authored
Merge pull request #7 from andreazorzi/development
Fix tmp directory error
2 parents fe08fda + 96c3af6 commit 99d926b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Http/Middleware/Init.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Illuminate\Support\Facades\Cache;
1010
use Illuminate\Support\Facades\Schema;
1111
use Illuminate\Support\Facades\Artisan;
12+
use Illuminate\Support\Facades\Storage;
1213

1314
class Init
1415
{
@@ -25,6 +26,7 @@ public function handle(Request $request, Closure $next, ...$roles)
2526
if(is_null(Cache::get("migrate"))){
2627
Artisan::call('migrate --force');
2728
Cache::forever("migrate", true);
29+
Storage::disk("asset")->makeDirectory("tmp/qrcode");
2830
}
2931

3032
// check if user admin exists

0 commit comments

Comments
 (0)