I\'m completely new to Laravel, MVC and templating engines in general.
I need to show certain navbar buttons and options if a user is logged in such as: Notifications, L
Starting from Laravel 5.4 there's new blade directive @includeWhen which includes view based on a given boolean condition :
@includeWhen
@includeWhen(Auth::check(), 'partials.navbarlogged') @includeWhen(Auth::guest(), 'partials.navbar')