We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fd5e46 commit 5b3f9a9Copy full SHA for 5b3f9a9
src/Core/PWA.php
@@ -3,6 +3,7 @@
3
namespace EragLaravelPwa\Core;
4
5
use Illuminate\Http\Request;
6
+use Illuminate\Support\Facades\File;
7
use Illuminate\Validation\ValidationException;
8
9
class PWA
@@ -19,8 +20,8 @@ public static function processLogo(Request $request): array
19
20
21
$destinationPath = public_path('logo.png');
22
- if (file_exists($destinationPath)) {
23
- unlink($destinationPath);
+ if (File::exists($destinationPath)) {
24
+ File::delete($destinationPath);
25
}
26
27
$request->file('logo')->move(public_path(), 'logo.png');
0 commit comments