<?php

View::composer('partials.sidebar-nav', 'Modules\User\Composers\SidebarViewComposer');
View::composer([
        'user::admin.partials.permissions',
        'user::admin.partials.permissions-create',
    ], 'Modules\User\Composers\PermissionsViewComposer');

View::composer(['partials.sidebar-nav', 'partials.top-nav'], 'Modules\User\Composers\UsernameViewComposer');

<?php

View::composer('partials.sidebar-nav', 'Modules\User\Composers\SidebarViewComposer');
View::composer([
        'user::admin.partials.permissions',
        'user::admin.partials.permissions-create',
    ], 'Modules\User\Composers\PermissionsViewComposer');

View::composer(['partials.sidebar-nav', 'partials.top-nav', 'layouts.master'], 'Modules\User\Composers\UsernameViewComposer');

Set the user on the master layout
Set the user on the master layout
