Answers for "a facade root has not been set laravel 7"

PHP
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 laravel 7"

Browse Popular Code Answers by Language