I am using Auth::check
function in laravel. In all controller its working fine but in blade file it will not working.
I got this error
Whoops, looks like something went wrong.
1/1 FatalErrorException in /var/www/html/laravel-master/storage/framework/views/e016f9336e75e5cb0b189c91cd736729b7184a61.php line 5: Call to undefined method Illuminate\Auth\AuthManager::check() in e016f9336e75e5cb0b189c91cd736729b7184a61.php line 5
My blade file auth check code is
@if(Auth::check())
<div class="dispayingTextDiv"></div>
@endif
What is wrong?