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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community