Changing default environment in Laravel 4

前端 未结 6 1801
我在风中等你
我在风中等你 2021-02-02 00:35

In Laravel 4 the default configuration environment is \'production\'. This means that if you run an artisan command without the --env option, it assumes the product

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 01:08

    You can try modifying app/start.php file to add second parameter on desired environment as TRUE i.e. to enable local environment it looks like

    $env = $app->detectEnvironment(array(
    
        'local' => array('homestead',true),
    
    ));
    

提交回复
热议问题