Updated Environment class to reflect changes in Laravel.