Only display menu for switching between spaces if user has multiple spaces
MODIFY
resources/views/layout.blade.php
resources/views/layout.blade.php
</li>
</ul>
</li>
+ @if (Auth::user()->spaces->count() > 1)
<li class="dropdown">
<a href="#" class="dropdown__toggle">
{{ str_limit(session('space')->name, 3) }} <i class="fas fa-caret-down fa-sm"></i>
@endforeach
</ul>
</li>
+ @endif
<li class="dropdown">
<a href="#" class="dropdown__toggle">
<img src="{{ Auth::user()->avatar ? '/storage/avatars/' . Auth::user()->avatar : 'http://placehold.it/50x50' }}" class="avatar mr-05" /> <i class="fas fa-caret-down fa-sm"></i>

Only display menu for switching between spaces if user has multiple spaces