From a3dd891b45487abd70c44226ba486d7384d05d4b Mon Sep 17 00:00:00 2001
From: Daniel Brendel
-<steam-app appid="620"></steam-app>
+<steam-app appid="{{ env('APP_EXAMPLE_APP') }}"></steam-app>
This renders the following widget:
-
@@ -181,7 +181,7 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamApp('#app-widget', {
- appid: '620',
+ appid: '{{ env('APP_EXAMPLE_APP') }}',
//You can specify the same attributes as shown in the table above
});
});
@@ -239,13 +239,13 @@ document.addEventListener('DOMContentLoaded', function() {
When referenced the required Steam Server module, the minimum code to render a widget is as follows:
-<steam-server addr="ip:port"></steam-server>
+<steam-server addr="{{ env('APP_EXAMPLE_SERVER') }}"></steam-server>
@@ -350,7 +350,7 @@ document.addEventListener('DOMContentLoaded', function() {
<script>
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamServer('#server-widget', {
- addr: 'ip:port',
+ addr: '{{ env('APP_EXAMPLE_SERVER') }}',
//You can specify the same attributes as shown in the table above
});
});
@@ -408,13 +408,13 @@ document.addEventListener('DOMContentLoaded', function() {
When referenced the required Steam User module, the minimum code to render a widget is as follows:
-<steam-user steamid="id"></steam-user>
+<steam-user steamid="{{ env('APP_EXAMPLE_USER') }}"></steam-user>
@@ -509,7 +509,7 @@ document.addEventListener('DOMContentLoaded', function() {
<script>
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamUser('#user-widget', {
- steamid: 'id',
+ steamid: '{{ env('APP_EXAMPLE_USER') }}',
//You can specify the same attributes as shown in the table above
});
});
@@ -565,13 +565,13 @@ document.addEventListener('DOMContentLoaded', function() {
When referenced the required Steam Workshop module, the minimum code to render a widget is as follows:
-<steam-workshop itemid="id"></steam-workshop>
+<steam-workshop itemid="{{ env('APP_EXAMPLE_WORKSHOP') }}"></steam-workshop>
@@ -646,7 +646,7 @@ document.addEventListener('DOMContentLoaded', function() { <script> document.addEventListener('DOMContentLoaded', function() { let widget = new SteamWorkshop('#workshop-widget', { - itemid: 'id', + itemid: '{{ env('APP_EXAMPLE_WORKSHOP') }}', //You can specify the same attributes as shown in the table above }); });