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;