@@ -10,7 +10,7 @@ Request Validation field.
10
10
11
11
### Controller
12
12
13
- To create a ` addMetabox ` field in store and update, do the following.
13
+ To create a ` addMetabox ` Text field in store and update, do the following.
14
14
15
15
``` php
16
16
public function store(Request $request, Post $post)
@@ -73,6 +73,13 @@ To display metabox data in your views, use the `getMetabox` method:
73
73
Text Field: {{ $post->getMetabox('text_field') }}
74
74
```
75
75
76
+ ### Screenshot
77
+
78
+ <div align =" center " >
79
+ <img src="../screenshots/text.png" alt="Text Field Metabox Laravel">
80
+ </div >
81
+
82
+
76
83
# File Upload Field
77
84
78
85
### Request
@@ -85,7 +92,7 @@ Request Validation field.
85
92
86
93
### Controller
87
94
88
- To create a ` uploadImageMetabox ` field in store and update, do the following.
95
+ To create a ` uploadImageMetabox ` File Upload field in store and update, do the following.
89
96
90
97
``` php
91
98
public function store(Request $request, Post $post)
@@ -161,6 +168,12 @@ To display metabox data in your views, use the `getMetabox` method:
161
168
@endif
162
169
```
163
170
171
+ ### Screenshot
172
+
173
+ <div align =" center " >
174
+ <img src="../screenshots/uploadImage.png" alt="Text Field Metabox Laravel">
175
+ </div >
176
+
164
177
# Select Field
165
178
166
179
### Request :
@@ -254,6 +267,12 @@ To display metabox data in your views, use the `getMetabox` method:
254
267
{{ $post->getMetabox('select_field') ?? 'No category selected' }}
255
268
```
256
269
270
+ ### Screenshot
271
+
272
+ <div align =" center " >
273
+ <img src="../screenshots/select.png" alt="Text Field Metabox Laravel">
274
+ </div >
275
+
257
276
# Checkbox Field
258
277
259
278
### Request
@@ -343,6 +362,12 @@ To display metabox data in your views, use the `getMetabox` method:
343
362
@endif
344
363
```
345
364
365
+ ### Screenshot
366
+
367
+ <div align =" center " >
368
+ <img src="../screenshots/checkbox.png" alt="Text Field Metabox Laravel">
369
+ </div >
370
+
346
371
# Toggle Field
347
372
348
373
### Controller
@@ -427,6 +452,12 @@ To display metabox data in your views, use the `getMetabox` method:
427
452
@endif
428
453
```
429
454
455
+ ### Screenshot
456
+
457
+ <div align =" center " >
458
+ <img src="../screenshots/toggle.png" alt="Text Field Metabox Laravel">
459
+ </div >
460
+
430
461
# Radio Field
431
462
432
463
### Controller
@@ -526,10 +557,18 @@ To display metabox data in your views, use the `getMetabox` method:
526
557
@endif
527
558
```
528
559
560
+ ### Screenshot
561
+
562
+ <div align =" center " >
563
+ <img src="../screenshots/radio.png" alt="Text Field Metabox Laravel">
564
+ </div >
565
+
529
566
# Tabs Field
530
567
531
568
### Views
532
569
570
+ To create a ` x-TabMetabox ` Tabs field in store and update, do the following.
571
+
533
572
- create.blade.php and edit.blade.php
534
573
535
574
``` html
@@ -562,7 +601,13 @@ To display metabox data in your views, use the `getMetabox` method:
562
601
</form >
563
602
```
564
603
565
- # Radio Field
604
+ ### Screenshot
605
+
606
+ <div align =" center " >
607
+ <img src="../screenshots/tabs.png" alt="Text Field Metabox Laravel">
608
+ </div >
609
+
610
+ # Gallery Images Field
566
611
567
612
### Request
568
613
@@ -572,7 +617,7 @@ To display metabox data in your views, use the `getMetabox` method:
572
617
573
618
### Controller
574
619
575
- To create a ` addMetabox ` Radio field in store and update, do the following.
620
+ To create a ` addMetabox ` Gallery Images field in store and update, do the following.
576
621
577
622
``` php
578
623
public function store(Request $request, Post $post)
@@ -684,6 +729,12 @@ To display metabox data in your views, use the `getMetabox` method:
684
729
@endforeach
685
730
```
686
731
732
+ ### Screenshot
733
+
734
+ <div align =" center " >
735
+ <img src="../screenshots/gallery.png" alt="Text Field Metabox Laravel">
736
+ </div >
737
+
687
738
688
739
689
740
0 commit comments