Wednesday, February 18, 2015

[Laravel4][Resolved] Change environment from production

Visit the start.php file at your directory:
your_project_root/bootstrap/start.php

Chnage array value at line 27-29 to
$env = $app->detectEnvironment(array(
    'local' => array('homestead'),
)
);

Method 1 : (set environment as "devlopment")
$env = $app->detectEnvironment(function()
{
    return 'development';
})
;

Method 2: (set environment as "local")
$env = $app->detectEnvironment(array(
    'local' => array('homestead',true),
));

Reference:
http://stackoverflow.com/questions/20669462/changing-default-environment-in-laravel-4

No comments :

Post a Comment