Help regarding my blade file

Posted 1 month ago by hjortur17

Hi, in my master.blade.php file I have this

window.App ={!! json_encode([
    'signedIn' => Auth::check(),
    'user' => Auth::user(),
]) !!};

because I have some vue components that need to know about the user. But I want to move this somewhere else than​ having​ it in the layout file.

Please sign in or create an account to participate in this conversation.