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>
Source:stackexchange.com
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>