Tiny tweaks
This commit is contained in:
parent
166bd2e5ef
commit
7314b19a85
|
|
@ -24,11 +24,8 @@ class UserMenuComposer
|
||||||
{
|
{
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
$email = base64_encode($user->email);
|
$email = base64_encode($user->email);
|
||||||
$avatar = $this->filter->apply(
|
$avatarUrl = url('/avatar/user/'.$user->uid.'/25');
|
||||||
'user_avatar',
|
$avatar = $this->filter->apply('user_avatar', $avatarUrl, [$user]);
|
||||||
url('/avatar/user/'.$user->uid.'/25'),
|
|
||||||
[$user]
|
|
||||||
);
|
|
||||||
|
|
||||||
$view->with(compact('user', 'avatar'));
|
$view->with(compact('user', 'avatar'));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,8 @@ class UserPanelComposer
|
||||||
public function compose(View $view)
|
public function compose(View $view)
|
||||||
{
|
{
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
$avatar = $this->filter->apply(
|
$avatarUrl = url('/avatar/user/'.$user->uid.'/45');
|
||||||
'user_avatar',
|
$avatar = $this->filter->apply('user_avatar', $avatarUrl, [$user]);
|
||||||
url('/avatar/user/'.$user->uid.'/45'),
|
|
||||||
[$user]
|
|
||||||
);
|
|
||||||
|
|
||||||
$badges = [];
|
$badges = [];
|
||||||
if (auth()->user()->isAdmin()) {
|
if (auth()->user()->isAdmin()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user