Add guards to @auth blocks
This commit is contained in:
parent
0f9b705074
commit
1114f80e82
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@
|
|||
@endif
|
||||
|
||||
<!-- Title -->
|
||||
@auth()
|
||||
@auth('contact')
|
||||
<title>@yield('meta_title', '') — {{ auth()->guard('contact')->user()->user->account->isPaid() ? auth()->guard('contact')->user()->company->present()->name() : 'Invoice Ninja' }}</title>
|
||||
@endauth
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
@endif
|
||||
|
||||
<!-- Title -->
|
||||
@auth()
|
||||
@auth('contact')
|
||||
<title>@yield('meta_title', '') — {{ auth()->guard('contact')->user()->user->account->isPaid() ? auth()->guard('contact')->user()->company->present()->name() : 'Invoice Ninja' }}</title>
|
||||
@endauth
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue