@@ -16,8 +16,8 @@ class Test
16
16
{
17
17
public function home()
18
18
{
19
- Khead::setMeta('bladeport ',[
20
- "name" => "bladeport ",
19
+ Khead::setMeta('viewport ',[
20
+ "name" => "viewport ",
21
21
"content"=>"width=device-width, initial-scale=1"
22
22
]);
23
23
}
@@ -27,7 +27,7 @@ class Test
27
27
~ inside blade <access >
28
28
29
29
``` php
30
- {!! Khead::getMeta('bladeport ') !! }
30
+ {{ Khead::getMeta('viewport ') } }
31
31
// <meta name =" bladeport" content =" width=device-width, initial-scale=1" >
32
32
```
33
33
@@ -38,8 +38,8 @@ Khead::setLink('author',[
38
38
"rel"=>"author",
39
39
"href"=>"humans.txt"
40
40
]);
41
- // access inside blade
42
- {!! Khead::getLink('author') !! }
41
+ // blade
42
+ {{ Khead::getLink('author') } }
43
43
// <link rel =" author" href =" humans.txt" >
44
44
```
45
45
@@ -50,15 +50,15 @@ Khead::setScript('one',[
50
50
"src"=>"test.js",
51
51
]);
52
52
// blade
53
- {!! Khead::getScript('one') !! }
53
+ {{ Khead::getScript('one') } }
54
54
// <script src =" test.js" ></script >
55
55
```
56
56
# title
57
57
58
58
``` php
59
59
Khead::setTitle('this is a title');
60
- // access blade
61
- {!! Khead::getTitle() !! }
60
+ // blade
61
+ {{ Khead::getTitle() } }
62
62
```
63
63
64
64
# facebook open graph
@@ -101,10 +101,8 @@ Khead::setOg([
101
101
"content"=>"@code4mk"
102
102
]
103
103
]);
104
-
105
- // access with blade
106
-
107
- {!! Khead::getOg() !!}
104
+ // blade
105
+ {{ Khead::getOg() }}
108
106
```
109
107
110
108
# twitter cards
@@ -144,9 +142,8 @@ Khead::setTwitCards([
144
142
"content"=>"on"
145
143
]
146
144
]);
147
- // access inside blade
148
-
149
- {!! Khead::getTwitCards() !!}
145
+ // blade
146
+ {{ Khead::getTwitCards() }}
150
147
```
151
148
152
149
# Head tags
0 commit comments