📜  laravel 7 未设置外观根 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:00.883000             🧑  作者: Mango

代码示例1
## 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);
}