Skip to content

Commit

Permalink
Updating the views and sidebar items config
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Dec 15, 2016
1 parent 5403e90 commit 9a6533f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'arcanesoft.sidebar.auth.main',
// 'arcanesoft.sidebar.pages.main',
// 'arcanesoft.sidebar.blog.main',
// 'arcanesoft.sidebar.media.main',
// 'arcanesoft.sidebar.tracker.main',
'arcanesoft.sidebar.foundation.settings',
'arcanesoft.sidebar.foundation.system',
Expand Down
5 changes: 5 additions & 0 deletions resources/views/_template/csrf-token.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php $token = csrf_token() ?>
<meta name="csrf-token" content="{{ $token }}">
<script>
window.Laravel = {!! json_encode(['csrfToken' => $token]) !!}
</script>
6 changes: 2 additions & 4 deletions resources/views/_template/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{!! seo_helper()->render() !!}
{{ Html::style('vendor/foundation/css/app.css') }}

{{-- CSRF Token --}}
<meta name="csrf-token" content="{{ csrf_token() }}">
<script>
window.Laravel = <?php echo json_encode(['csrfToken' => csrf_token()]); ?>
</script>
@include('foundation::_template.csrf-token')
{{ Html::script('vendor/foundation/js/vendors/pace.min.js') }}
<!--[if lt IE 9]>
{{ Html::script('https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js') }}
Expand Down

0 comments on commit 9a6533f

Please sign in to comment.