File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,20 @@ Blade template engine has created to not code PHP pure, It has created to code e
143
143
- ` @script `
144
144
``` blade
145
145
@script('js/script.js', true)
146
-
147
- // Return script tag with 'defer' : <script src="http://domain/js/script.js" defer></script>
146
+ // Return script tag with 'https' protocol : <script src="https://domain/js/script.js"></script>
147
+
148
+ @script('js/script.js', false) // Second and third parameter is optional
149
+ // Return with 'http' protocol : <script src="http://domain/js/script.js"></script>
150
+
151
+ @script('js/script.js', true, true)
152
+ // Return with 'defer' attribute : <script src="https://domain/js/script.js" defer></script>
153
+ ```
154
+
155
+ - ` @style `
156
+ ``` blade
157
+ @style('css/app.css', true)
158
+ // Return link tag with 'https' protocol : <link rel="stylesheet" href="https://domain/css/app.css">
148
159
149
- @script('js/script.js', false) // Second parameter is optional
150
-
151
- // Return : <script src="http://domain/js/script.js"></script>
160
+ @style('css/app.css', false)
161
+ // Return with 'http' protocol : <link rel="stylesheet" href="http://domain/css/app.css">
152
162
```
You can’t perform that action at this time.
0 commit comments