Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,28 @@ The impact of this change has been marked as `medium` since the helpers have bee

The `defer` boolean property on the service provider which is/was used to indicate if a provider is deferred [has been deprecated](https://github.com/laravel/framework/pull/27067). In order to mark the service provider as deferred it should implement the `Illuminate\Contracts\Support\DeferrableProvider` contract.

#### Read-Only `env` Helper

**Likelihood Of Impact: Low**

Previously, the `env` helper could retrieve values from environment variables which were changed at runtime. In Laravel 5.8, the `env` helper treats environment variables as immutable. If you would to change an environment variable at runtime, consider using a configuration value that can be retrieved using the `config` helper:

Previous behavior:

dump(env('APP_ENV')); // local

putenv('APP_ENV=staging');

dump(env('APP_ENV')); // staging

New behavior:

dump(env('APP_ENV')); // local

putenv('APP_ENV=staging');

dump(env('APP_ENV')); // local

<a name="testing"></a>
### Testing

Expand Down