GroundZero

Experience

1,350

0 Best Reply Awards

  • Member Since 10 Months Ago
  • 7 Lessons Completed
  • 0 Favorites

15th September, 2017

GroundZero left a reply on Test Fails, Always 500 Where 200 Expected • 1 week ago

That did indeed fix one of the errors :) tests are working now, but when I try to go to the home page '/' it gives me a 302 error.

Anyways thanks for your answer ill Google some more and try to find out the rest haha :D

This helped me a lot!

GroundZero started a new conversation Test Fails, Always 500 Where 200 Expected • 1 week ago

Ha guys,

i am trying to make some unit tests, unfortunately I always receive a 500 error where a 200 is expected.

I can visit my website anywhere, its fully functional and working, just Unit tests wont work, always errors no matter what kind of test I do.

I tried checking the log, but the errors there are replaces with dots (to shorten them) so I have no clue if those are messing things up or not.

My code:

<?php

namespace Tests\Unit;

use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;

class ApiTest extends TestCase
{

    public function testExample()
    {
        $this->assertTrue(true);
    }

    public function testPageAvailability()
    {

        $this->withoutMiddleware();

        $response = $this->call('get', '/login');           // the link to visit
        $response->assertStatus(200);                             // status we expect

    }
}

The error I receive is:

  1. Tests\Unit\ApiTest::testPageAvailability Expected status code 200 but received 500. Failed asserting that false is true.

When I look in my log file I get this:

[2017-09-15 11:25:43] testing.ERROR: ErrorException: Undefined variable: errors in D:\BolBoosch\new_kennisbank\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\BolBoosch\new_kennisbank\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php(12): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined varia...', 'D:\\MyWebsite\\ne...', 12, Array)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('D:\\MyWebsite\\ne...')
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#6 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#7 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#22 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#33 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#34 {main}

Next ErrorException: Undefined variable: errors (View: D:\MyWebsite\my_workspace\resources\views\auth\login.blade.php) in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#6 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#21 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#22 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#33 {main}  
[2017-09-15 11:26:46] testing.ERROR: ErrorException: Undefined variable: errors in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php(12): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined varia...', 'D:\\MyWebsite\\ne...', 12, Array)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('D:\\MyWebsite\\ne...')
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#6 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#7 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#22 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#33 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#34 {main}

Next ErrorException: Undefined variable: errors (View: D:\MyWebsite\my_workspace\resources\views\auth\login.blade.php) in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#6 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#21 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#22 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#33 {main}  
[2017-09-15 11:27:55] testing.ERROR: ErrorException: Undefined variable: errors in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php(12): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined varia...', 'D:\\MyWebsite\\ne...', 12, Array)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('D:\\MyWebsite\\ne...')
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#6 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#7 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#22 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#33 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#34 {main}

Next ErrorException: Undefined variable: errors (View: D:\MyWebsite\my_workspace\resources\views\auth\login.blade.php) in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#6 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(23): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#21 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#22 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#33 {main}  
[2017-09-15 11:33:54] testing.ERROR: ErrorException: Undefined variable: errors in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php(12): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined varia...', 'D:\\MyWebsite\\ne...', 12, Array)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('D:\\MyWebsite\\ne...')
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#6 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#7 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(31): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#22 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#33 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#34 {main}

Next ErrorException: Undefined variable: errors (View: D:\MyWebsite\my_workspace\resources\views\auth\login.blade.php) in D:\MyWebsite\my_workspace\storage\framework\views\537ee075fe5f8641c7c0d182861983ddcb0ed470.php:12
Stack trace:
#0 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('D:\\MyWebsite\\ne...', Array)
#2 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(137): Illuminate\View\Engines\CompilerEngine->get('D:\\MyWebsite\\ne...', Array)
#3 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(120): Illuminate\View\View->getContents()
#4 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#5 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Http\Response.php(38): Illuminate\View\View->render()
#6 D:\MyWebsite\my_workspace\vendor\symfony\http-foundation\Response.php(201): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#12 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#13 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#14 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#15 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#16 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#18 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#19 D:\MyWebsite\my_workspace\vendor\laravel\framework\src\Illuminate\Foundation\Testing\Concerns\MakesHttpRequests.php(234): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#20 D:\MyWebsite\my_workspace\tests\Unit\ApiTest.php(31): Illuminate\Foundation\Testing\TestCase->call('get', '/login')
#21 [internal function]: Tests\Unit\ApiTest->testPageAvailability()
#22 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(1054): ReflectionMethod->invokeArgs(Object(Tests\Unit\ApiTest), Array)
#23 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(905): PHPUnit_Framework_TestCase->runTest()
#24 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestResult.php(686): PHPUnit_Framework_TestCase->runBare()
#25 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestCase.php(860): PHPUnit_Framework_TestResult->run(Object(Tests\Unit\ApiTest))
#26 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#27 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#28 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\Framework\TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#29 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(517): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#30 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#31 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\src\TextUI\Command.php(116): PHPUnit_TextUI_Command->run(Array, true)
#32 D:\MyWebsite\my_workspace\vendor\phpunit\phpunit\phpunit(52): PHPUnit_TextUI_Command::main()
#33 {main}  

I honestly have been trying to PHP Unit tests working for over a week now with zero progress, so I hope someone can help me out with this matter :)

Yours sincerely,

Angelo

12th September, 2017

GroundZero left a reply on API Authentication • 1 week ago

Yeah I read about JWT, didnt see there was a package available yet. Ill look into it thank you!

GroundZero started a new conversation API Authentication • 1 week ago

Ha guys. I am currently developing a platform where people from outside can get information from through calling my API.

My question: what kind of security would you recommend to use? Basic authorization, custom with specific encryption, or oauth? And why do you recommend it?

Hope you can share your experience with me :)

Thanks in forward!

8th September, 2017

GroundZero left a reply on Eloquent (in) Ignored Completely • 2 weeks ago

I cant use 1=1, already tried but throws an error Unknown column '1' in ' :)

$split contains an array of words that were searched for, for example:

[0] %hello% [1] %world%

so for each word, it will add a "where" loop that checks if the title, tags, summary, content or customer_msg partially contains the given word.

You are right about "$request", stupid mistake of mine, thanks for pointing that out, will correct this!

GroundZero left a reply on Eloquent (in) Ignored Completely • 2 weeks ago

I tried that but it still ignores it, unless I did it wrong :) See this:

$request = Faq::select('id', 'category_id', 'title', 'clean_title', 'content', 'created_at');

$request->where(function($query) use ($searches, $request){

    foreach($searches as $word){

        $request->orWhere('title', 'like', '%'.$word.'%');
        $request->orWhere('tags', 'like', '%'.$word.'%');
        $request->orWhere('summary', 'like', '%'.$word.'%');
        $request->orWhere('content', 'like', '%'.$word.'%');
        $request->orWhere('customer_msg', 'like', '%'.$word.'%');

    }

});

$request->whereIn('category_id', $split);

$query = $request->get();

It still returns everything from any "category_id".

7th September, 2017

GroundZero started a new conversation Eloquent (in) Ignored Completely • 2 weeks ago

Ha guys, I am trying to make a query with multiple where statements in it. It is working fine with the first part, but the second part (categorie) is completely ignored. Can anyone tell me why? I can't figure it out. When I just print the query it looks completely fine!

select `id`, `category_id`, `title`, `clean_title`, `content`, `created_at` from `faq` where `title` like ? or `tags` like ? or `summary` like ? or `content` like ? or `customer_msg` like ? and `category_id` in (?, ?)

and the Array that fills it:

(
    [0] => %mogen%
    [1] => %mogen%
    [2] => %mogen%
    [3] => %mogen%
    [4] => %mogen%
    [5] => 92
    [6] => 106
)

What is want is ANY result that has one of the words in any of the categories (first where part which is working fine) but when one or multiple categories are chosen, only results that belong to this category.

Hope someone can help me out on this matter :)

18th July, 2017

GroundZero left a reply on SQLSTATE[22007]: Invalid Datetime Format • 2 months ago

Problem is fixed. I was inserting/updating a Productnumber e.g. 15000 but for some reason Laraval kept changing it to 15000.0 so I had to type cast it with (string) and that fixed it.

Strange that Laravel is changing the stuff I put into a query but oh well... now I know for future reference :)

Thanks for your reply lars6!

17th July, 2017

GroundZero started a new conversation SQLSTATE[22007]: Invalid Datetime Format • 2 months ago

Ha guys,

I am stuck on this error. I changed my code a little bit (more fields to save) and all the sudden I would end up with this error.

I fetch my ProductNUmber for example "1500002" which is the correct one, and then I try to update it with this code:

$amount = Products::where('ProductNumber', $productNumber)->update( $update );

Always worked untill I added more fields. I have no clue what could be wrong... been looking and trying for hours but somehow the code crashes (this error) when it reaches this rule ($amount)

SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'BB001' (SQL: update `Products` set `BrandID` = 10, `itemName` = "Cosmopolis", `ItemNameSub` = "", `EAN` = "7612718346184", `WatchMovementPartNrID` = 2313, `CaseCode` = "", `StraightStrapMount` = 0, `Diameter` = 0 where `ProductNumber` = 1500002)

The contents of $update are:

(
    [BrandID] => 10
    [itemName] => Cosmopolis
    [ItemNameSub] =>  
    [EAN] => "7612718346184"
    [WatchMovementPartNrID] => 2313
    [CaseCode] => 
    [StraightStrapMount] => 0
    [Diameter] => 0
) ```

Hope someone can shine a light on this problem haha.


12th July, 2017

GroundZero left a reply on Updates Not Visible Until Artisan View:clear • 2 months ago

OPcache is disabled on there server where I am hosting :) I think the modification time is updated because sometimes I see an error about mkfiletime or something like that (forgot the php function name) when I refresh to fast after doing a

php artisan view:clear

so yeah that one if being updated as far as I know :)

Weird part is... today I was developing a little bit, and the whole time I did NOT need to run a clear command... while all the previous days I had to :/

But that might be luck, I bet tonight when I continue development I have to clear again hahaha :P

11th July, 2017

GroundZero left a reply on Route File With Database Request • 2 months ago

ah that is exactly what I needed haha, thanks so much for your answer bunnypro!

GroundZero left a reply on Route File With Database Request • 2 months ago

I get your point mushood, except in this case the "SEO experts" have chosen to keep the deepness of the URL short e.g. no prefix, which I personally would prefer (product, brand, et cetera).

I am totally not familiar with polymorphic relations et cetera mikevrind but I will surely check out the link.

Thank you both for your answers and suggestions!

GroundZero started a new conversation Route File With Database Request • 2 months ago

Hi,

I was wondering if this is possible or not, and if yes how to do it. Short explanation:

url possibility 1: www.mysite.com/intel/ url possibility 2 www.mysite.com/amd-ryzen-7-1800x/

The first one is a "brand" page and the second one a "product page". I dislike the use of regex because I honestly do not like .htm at the end e.g.

www.mysite.com/amd-ryzen-7-1800x.htm

to define if it is a product page or not. Is there any other way to do this? e.g. in the routes file check what is searched for (number of rows from a mysql request e.g. the one below) and then display the correct route?

Hope someone can help me out with this :)


if num_rows == 0

SELECT id FROM Pages WHERE pageName= "amd-ryzen-7-1800x"```

et cetera, untill I found what was looked for, if no results then a 404 page or what ever I decide to use :)

10th July, 2017

GroundZero left a reply on Updates Not Visible Until Artisan View:clear • 2 months ago

Unfortunately I have no admin or anything (Seeing your Dutch just like me, I think you will know this company.. PCEXTREME).

I tried like literally 30+ tutorials on internet but none work and -or help me to disable the view cache. Either they do nothing or I get errors lol.

So yeah, hope someone else knows a fix ^^

9th July, 2017

GroundZero left a reply on Updates Not Visible Until Artisan View:clear • 2 months ago

Found the solution myself ;)

Need to use the cache facade in the controller and then flush it.

use Illuminate\Support\Facades\Cache; Cache::flush();

thats all :)

GroundZero started a new conversation Updates Not Visible Until Artisan View:clear • 2 months ago

Ha guys,

quick question... anything I update in my website is NOT visible untill I run the command:

artisan view:clear

through SSH... is there a way for me not to having to run this command non-stop? its really annoying haha...

GroundZero left a reply on CSS BG Image Not Found, But Found When Clicked On Link • 2 months ago

I put it on a new domain, so you can see a live version :)

http://bit.ly/2tVJfgo

same stuff happens. Its not shared hosting, I have not changed .htaccess files or anything else. When I use placeholders from an external source, everything is already... only when using images from my local hosting they can not be displayed... this only happens in Laravel.

8th July, 2017

GroundZero left a reply on CSS BG Image Not Found, But Found When Clicked On Link • 2 months ago

well, dont think that is the issue... I have multiple sites on my domain (not shared hosting) and it works flawless, has been for 13+ years... only since this week with Laravel I had this issue (im new to Laravel)... so I think its either Laravel or something like that related cause everything else is working just fine :)

Thanks for your fast replies!

GroundZero left a reply on CSS BG Image Not Found, But Found When Clicked On Link • 2 months ago

At the bottom increases the page load speed, been doing it for years ;) but for this example ill move it to the top then :)

About the public folder... I meant the "public" folder in Laravel. After deploying it, it automaticly comes as

root\public\index.php

and thus to see the website I need to go to www.mysite.nl/public/ otherwise I wont see anything. See my folder structure in the screenshot. This is how Laravel comes out of the box.

See the link below for my FTP folder structure. I have no clue on how or what to change in the .htaccess to make everything visible without typing in "public" in the URL.

/domains/mysite.nl/htdocs/www/projects/zoekmachine

image: https://s11.postimg.org/wb2zazcqr/laravel.jpg

GroundZero left a reply on CSS BG Image Not Found, But Found When Clicked On Link • 2 months ago

yeah correct but that shouldnt matter, works both ways but I tried both and both gave the same outcome unfortunately :(

GroundZero started a new conversation CSS BG Image Not Found, But Found When Clicked On Link • 2 months ago

Hi guys, as the title says...

when I use background-image:url('') it says the image is not found but when I click on the image link in the source code, it shows me the image.

Can anyone explain me what is wrong?

Also... to see my website I have to go to www.mysite.com/public and when I try the .htaccess method found on internet

RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]

it doesnt work, it gives me a route error.

Hope someone can help me out, i'm using Laravel 5.4 :)

26th June, 2017

GroundZero left a reply on Query With Dynamic Amount Of Joins • 2 months ago

Thanks for your answer. I will look into that :)

23rd June, 2017

GroundZero started a new conversation Query With Dynamic Amount Of Joins • 3 months ago

Ha guys,

I have a unknown (1 up to 4) amount of joins that I would like to add to my query. Unfortunately, no matter what I do, the query ignores my join. No error, nothing. Can someone please help me out and tell me how to get this working?

// create a new query object
$products = new Products;

// create selects and joins
foreach($fields as $field){
    switch($field){
        case 'ProductNumber':
            $select[] = 'ProductNumber';
        break;

        case 'EAN':
            $select[] = 'EAN';
        break;

        case 'caseCode':
            $select[] = 'WatchCaseColorID';
        break;

        case 'diameterCase':
            $select[] = 'Diameter';
        break;

        case 'straightStrapMount':
            $select[] = 'StraightStrapMount';
        break;

        case 'strapFamily':
                $products->join('watchStrapLinking', 'Products.id', '=', 'watchStrapLinking.watchProductId', 'inner');
            $joins[] = 'watchStrapLinking';
        break;

        case 'diameterStrap':
            $products->join('Products', 'Products.id', '=', 'watchStrapLinking.strapProductId', 'innert');
            $joins[] = 'Products';
        break;

    }
}




DB::connection()->enableQueryLog();

$products->select($select)->limit(1)->get();
$products->join('a', 'a.a', '=', 'b.b', 'inner');

$queries = DB::getQueryLog();

echo '<pre><code>'.print_r($queries, true).'</code></pre>';
echo '<pre><code>'.print_r($products[0], true).'</code></pre>';
echo '<pre><code>'.print_r($select, true).'</code></pre>';
echo '<pre><code>'.print_r($joins, true).'</code></pre>';

the select is working properly obvious, but the JOINS are just totally ignored.

Hope someone can help me out!

Best regards

7th February, 2017

GroundZero left a reply on SUM And GroupBy Problems / Guiding • 7 months ago

I have just found the answer after hours of searching. I am a total noob and still learning Laravel so yeah ^^

Anyways the answer to my problem:

open the database.php file in /config/database.php and find your database connection. It should have a line saying "strict". Standard this is set to "true" which forces you to parse all row names.

When set to "false" you can use groupBy with just one row name i.e:

'strict' => false,

Hope this will help out others as well when they encounter this "problem".

Thanks

GroundZero started a new conversation SUM And GroupBy Problems / Guiding • 7 months ago

Ha guys,

I am currently learning Eloquent but I am having trouble forming my query properly. What I want to archieve is:

Get ALL results but group on "url" and count each value togather from "page_load_time" and "pagespeed_score" field.

So basicly I have this date:

[ id ][ page_load_time ][ pagespeed_score ][ url ] 1 0.214 9.2 mysite.it/mypage/ 2 0.321 8.9 mysite.it/mypage/

and it should become this:

[ id ][ page_load_time ][ pagespeed_score ][ url ] 1 0.535 18.1 mysite.it/mypage/

My current query is:

$data = Rapports::select('id', DB::raw('SUM(page_load_time) as pltt'), 'uri', DB::raw('SUM(pagespeed_score) as pst'), 'execution_date') ->orderBy('id', 'desc') ->where('execution_date', '>=', date("Y", time()).'-'.date("m", time()).'-01') ->whereIn('uri', $arr) ->groupBy('id', 'uri', 'page_load_time', 'pagespeed_score', 'execution_date') ->get();

Hope someone can give me the right answer :)

Your sincerely,

Mithradantor

22nd November, 2016

GroundZero started a new conversation Laravel 5.X Cookbook And Current Version • 10 months ago

Hello,

I have a simple question and I was hoping someone could give me an answer too it :)

I was thinking about buying this book at bol.com @ https://www.bol.com/nl/p/laravel-5-x-cookbook/9200000058438105/

I saw that the routes have changed in Laravel 5.3, is this also in the book or is the book still following the "older" way?

I am totally new to Laravel so I would prefer a book that handles Laravel exactly as the current version 5.3 is as of today so I do not have to go back and forward to the internet because things are not as if written in the book.

Hope someone can give me an answer on this matter :)

Thanks in forward,

Yours sincerely,

Angelo

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.