@@ -13,6 +13,8 @@ class SinglePageController extends Controller
*/
public function index()
{
- return view("landing");
+ $appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
+
+ return view("landing")->with('appSettings', $appSettings);;
}
@@ -23,7 +23,7 @@
<app></app>
</div>
<script type="text/javascript">
- var appSettings = @json(\Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toArray(), JSON_PRETTY_PRINT)
+ var appSettings = {!! $appSettings !!}
</script>
<script src="{{ mix('js/app.js') }}"></script>
<script src="{{ mix('js/locales.js') }}"></script>