Skip to content

Commit 29c3a19

Browse files
committed
feat:update the PWA logo dynamically
1 parent 3388e19 commit 29c3a19

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,21 @@ Your Laravel PWA is now configured to update the logo dynamically! 🚀
119119

120120
#### 1. **Create a Controller Method**
121121

122-
**Input Key Name:** `logo`
122+
**Input Key Name:** `logo`
123+
123124
Make sure the image is in PNG format, at least 512x512 pixels, and does not exceed 1024 KB in size.
124125

125126
```html
126127
<input type="file" name="logo" accept=".png">
127128
```
128129

130+
131+
```php
132+
array:2 [▼ // EragLaravelPwa/src/Core/PWA.php:19
133+
"_token" => "iKbZh21VsYZMpNd9TN12Ul5SoysQzkMXlQkhB5Ub"
134+
"logo" => Illuminate\Http\UploadedFile{#1426 ▶}]
135+
```
136+
129137
```php
130138
namespace App\Http\Controllers;
131139

@@ -147,16 +155,8 @@ class SettingsController extends Controller
147155
}
148156
}
149157
```
150-
151-
```php
152-
array:2 [▼ // EragLaravelPwa/src/Core/PWA.php:19
153-
"_token" => "iKbZh21VsYZMpNd9TN12Ul5SoysQzkMXlQkhB5Ub"
154-
"logo" => Illuminate\Http\UploadedFile{#1426 ▶}]
155-
```
156-
157158
Once uploaded, the new logo will be available at `http://yourdomain.com/logo.png`.
158159

159-
160160
## Screenshots 📸
161161

162162
<img width="1470" alt="Screenshot 2024-09-19 at 10 11 01 PM" src="https://github.com/user-attachments/assets/27c08862-0557-4fbd-bd8f-90b9d05f67b3">

0 commit comments

Comments
 (0)