Answers for "a facade root has not been set"

PHP
6

a facade root has not been set laravel

//Remove:
use PHPUnit\Framework\TestCase;

//And replace it with:
use Tests\TestCase;
Posted by: Guest on October-14-2021
1

A facade root has not been set.

use Tests\TestCase;
Posted by: Guest on October-18-2021
0

a facade root has not been set laravel 7

## Do not forget to call parent::setUp(); before.

//fails

public function setUp(): void
{
    Config::set('something', true);
}

//works !!!!

public function setUp(): void
{
    parent::setUp();

    Config::set('something', true);
}
Posted by: Guest on October-22-2021

Code answers related to "a facade root has not been set"

Browse Popular Code Answers by Language