[Vuejs]-Laravel vue with two different layout

0👍

Pass it as a prop to your component
Something like:

Blade File:

@php
$isLoggedIn = Auth::check();
@endphp

<my-component :is-logged-in="{{ $isLoggedIn }}" </<my-component>

Leave a comment