ErrorException (E_ERROR)
Call to a member function hasRole() on null (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) ErrorException thrown with message "Call to a member function hasRole() on null (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php)" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in /home1/ncmhgov/laravel/storage/framework/views/acb18e633c68a51bd21f5b67f3f824059b985e3f.php:43
Application frames (1) All frames (1)
0
Symfony
\
Component
\
Debug
\
Exception
\
FatalThrowableError
/
storage
/
framework
/
views
/
acb18e633c68a51bd21f5b67f3f824059b985e3f.php
43
/
home1
/
ncmhgov
/
laravel
/
storage
/
framework
/
views
/
acb18e633c68a51bd21f5b67f3f824059b985e3f.php
                                   onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                    Гарах
                                </a></li>
                        </ul>
                    </div>
                    <form id="logout-form" action="<?php echo e(url('/logout')); ?>" method="POST" style="display: none;">
                        <?php echo e(csrf_field()); ?>
 
                    </form>
 
                    <div class="logo-element">
                        B1T+
                    </div>
                <?php endif; ?>
 
 
            </li>
 
            <?php if(Auth::user()->hasRole('admin')): ?>
                <li>
                    <a href="/home"><i class="fa fa-list-alt"></i> <span class="nav-label">Аналитик</span>
 
                    </a>
                </li>
 
                <li>
                    <a href="<?php echo e(url('users')); ?>"><i class="fa fa-list-alt"></i> <span class="nav-label">Хэрэглэгчид</span>
 
                    </a>
                </li>
                <li>
                    <a href="<?php echo e(url('roles')); ?>"><i class="fa fa-list-alt"></i> <span
                                class="nav-label">Хэрэглэгчдийн эрх</span>
 
                    </a>
                </li>
            <?php endif; ?>
            <?php if(Auth::user()->hasRole('webadmin')): ?>
            <li>
Arguments
  1. "Call to a member function hasRole() on null"
    
Exception message: Call to a member function hasRole() on null
Exception message: Call to a member function hasRole() on null (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php)
Exception message: Call to a member function hasRole() on null (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php) (View: /home1/ncmhgov/laravel/resources/views/partial/nav.blade.php)

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"ncmhgov"
HOME
"/home1/ncmhgov"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/password/reset"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/password/reset"
REMOTE_PORT
"40500"
SCRIPT_FILENAME
"/home1/ncmhgov/public_html/index.php"
SERVER_ADMIN
"webmaster@ncmh.gov.mn"
CONTEXT_DOCUMENT_ROOT
"/home1/ncmhgov/public_html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home1/ncmhgov/public_html"
REMOTE_ADDR
"34.239.150.57"
SERVER_PORT
"443"
SERVER_ADDR
"10.2.121.11"
SERVER_NAME
"ncmh.gov.mn"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
HTTP_X_HTTPS
"1"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"ncmh.gov.mn"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"ncmh.gov.mn"
HTTPS
"on"
SCRIPT_URI
"https://ncmh.gov.mn/password/reset"
SCRIPT_URL
"/password/reset"
UNIQUE_ID
"YHhoKc-ojHj@MZbXXoqfigAAAC8"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"ncmh.gov.mn"
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://ncmh.gov.mn/password/reset"
REDIRECT_SCRIPT_URL
"/password/reset"
REDIRECT_UNIQUE_ID
"YHhoKc-ojHj@MZbXXoqfigAAAC8"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1618503721.4078
REQUEST_TIME
1618503721
argv
[]
argc
0
APP_NAME
"СЭМҮТ"
APP_ENV
"local"
APP_KEY
"base64:9PE5TIiEXjTjFUrh11Ycv4UfCl+i8hp7a4vAzw7GlpM="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://ncmh.gov.mn"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"ncmhgov_mb"
DB_USERNAME
"ncmhgov_new"
DB_PASSWORD
"ncmhgov_newpassword"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
Key Value
APP_NAME
"СЭМҮТ"
APP_ENV
"local"
APP_KEY
"base64:9PE5TIiEXjTjFUrh11Ycv4UfCl+i8hp7a4vAzw7GlpM="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://ncmh.gov.mn"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"ncmhgov_mb"
DB_USERNAME
"ncmhgov_new"
DB_PASSWORD
"ncmhgov_newpassword"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
0. Whoops\Handler\PrettyPageHandler