Created
March 2, 2019 03:46
-
-
Save webdevmatics/be04d7918faaef5ae30d13276ad80be8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.user = "{!! | |
addslashes(json_encode([ | |
'user'=> auth()->user(), | |
'notifications'=> ['all'=>auth()->user()->notifications,'read'=> auth()->user()->readNotifications, 'unread'=>auth()->user()->unreadNotifications], | |
'roles'=> auth()->user()->roles, | |
'permissions'=> auth()->user()->getAllPermissions() | |
])) | |
!!}"; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment