@if (app('router')->has('login')) @endif
Laravel