Laravel Call to undefined method App\Exceptions\Handler::unauthenticated()

If you are facing problem in Laravel Call to undefined method App\Exceptions\Handler::unauthenticated(), this post might be helpful for you. It happens because unauthenticated function somehow missing from error handler.

Go to App\Exceptions\Handler.php file and add the following function.


Make sure top of your class, you have used use

Illuminate\Auth\AuthenticationException as AuthenticationException;