Open acacha opened 7 years ago
Maybe could be optional (config file)
Use:
<script> window.Laravel = {!! json_encode([ 'csrfToken' => csrf_token(), 'user' => Auth::user() ]) !!}; </script>
To htmlheader.blade.php partial.
Take into account window.Laravel is removed/deprecated in new Laravel versions
Why this change?
https://github.com/acacha/vue-laravel-authorization
Maybe could be optional (config file)
Use:
To htmlheader.blade.php partial.