Tuesday, April 11, 2017

ErrorException: Undefined index: HTTP_USER_AGENT in /home/storage/framework/views/0800146a0e35b205e9a66bb2f00ffb2f:8

i have this test function for testing login function

    public function authenticatedSuccess()
{   
    $this->visit('/auth/login')
         ->type('email@email.com','email')
         ->type('123456','password')
         ->press('Login')
         ->seePageIs('/dashboard');

}

then i got many errors on PHPUnit

ErrorException: Undefined index: HTTP_USER_AGENT in /home//storage/framework/views/0800146a0e35b205e9a66bb2f00ffb2f:8


#0 /home/storage/framework/views/0800146a0e35b205e9a66bb2f00ffb2f(8): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined index...', '/home/pr...', 8, Array)

and others in vendor folder

and i dont have a specific route for login so route contain this

 Route::controllers([
    'auth' => 'Auth\AuthController',
    'password' => 'Auth\PasswordController',
]);

so what is solution for these ?



via flower

Advertisement