fixing some issues related to environment.
This commit is contained in:
@@ -197,6 +197,17 @@ class Request {
|
||||
return static::foundation()->server->get('LARAVEL_ENV');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the Laravel environment for the current request.
|
||||
*
|
||||
* @param string $env
|
||||
* @return void
|
||||
*/
|
||||
public static function set_env($env)
|
||||
{
|
||||
static::foundation()->server->set('LARAVEL_ENV', $env);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the current request environment.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user