Support the ongoing development of Laravel.io →
Authentication Requests
Last updated 1 year ago.
0

Hm what you can do is include $user within a partial like so: BaseController:

View::share('currentUser', Auth::user());
@if($user->is($currentUser))
    @include('users.partials.currentuser)
@endif

@unless ($user->is($currentUser))
    @include('users.partials.user', ['users' => $user->users])
@endif
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

dflow dflow Joined 16 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.