adminlte-laravel
adminlte-laravel copied to clipboard
Add to window.Laravel the logged user?
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