Using standard out of the box authentication (have just pulled the code from 5.7 into my app), if the user enters the correct login details they get authenticated.
If they enter the incorrect details, in my local environment (Laradock), a flash message displays saying the login details were incorrect.
On my test environment (Ubuntu 16.04, PHP 7.1 etc) the page triggers an exception instead with the following errors in log:
Call to a member function setCookie() on null {"exception":{}}
Argument 1 passed to Illuminate\Session\Middleware\StartSession::addCookieToResponse() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given, called in /home/webuser/dafk/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php on line 71 {"exception":{}}
Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given, called in /home/webuser/dafk/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php on line 66 {"exception":{}}
So far I've tried:
Not too sure where to go with this from here. It seems to be an environment issue, but most things seem to line up. Help appreciated.