Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #facade #root #set #laravel
ADD COMMENT
Topic
Name
5+5 =