File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,21 @@ Your Laravel PWA is now configured to update the logo dynamically! 🚀
119
119
120
120
#### 1. ** Create a Controller Method**
121
121
122
- ** Input Key Name:** ` logo `
122
+ ** Input Key Name:** ` logo `
123
+
123
124
Make sure the image is in PNG format, at least 512x512 pixels, and does not exceed 1024 KB in size.
124
125
125
126
``` html
126
127
<input type =" file" name =" logo" accept =" .png" >
127
128
```
128
129
130
+
131
+ ``` php
132
+ array:2 [▼ // EragLaravelPwa/src/Core/PWA.php:19
133
+ "_token" => "iKbZh21VsYZMpNd9TN12Ul5SoysQzkMXlQkhB5Ub"
134
+ "logo" => Illuminate\Http\UploadedFile{#1426 ▶}]
135
+ ```
136
+
129
137
``` php
130
138
namespace App\Http\Controllers;
131
139
@@ -147,16 +155,8 @@ class SettingsController extends Controller
147
155
}
148
156
}
149
157
```
150
-
151
- ``` php
152
- array:2 [▼ // EragLaravelPwa/src/Core/PWA.php:19
153
- "_token" => "iKbZh21VsYZMpNd9TN12Ul5SoysQzkMXlQkhB5Ub"
154
- "logo" => Illuminate\Http\UploadedFile{#1426 ▶}]
155
- ```
156
-
157
158
Once uploaded, the new logo will be available at ` http://yourdomain.com/logo.png ` .
158
159
159
-
160
160
## Screenshots 📸
161
161
162
162
<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 " >
You can’t perform that action at this time.
0 commit comments