Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Illuminate\Support\Env' in older Laravel Versions #748

Closed
Sacerdoss opened this issue Sep 14, 2020 · 8 comments
Closed

Class 'Illuminate\Support\Env' in older Laravel Versions #748

Sacerdoss opened this issue Sep 14, 2020 · 8 comments

Comments

@Sacerdoss
Copy link

Tested on Laravel 5.8 requiring "mcamara/laravel-localization": "^1.3" fails with the latest commit
fdb68d2

Writing lock file
Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
In LaravelLocalization.php line 1040:

Class 'Illuminate\Support\Env' not found

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
ERROR: Job failed: command terminated with exit code 1

If anyone is having the same problem. You can temporarily use the version before the latest commit by specifying an explicit commit hash to composer.json like so:

"require": {
  "mcamara/laravel-localization": "dev-master#13f418e481ed06f482e4fca87ec5ff67c2949373"
}
@Sacerdoss Sacerdoss changed the title Latest commit causing problems in older Laravel Versions Class 'Illuminate\Support\Env' in older Laravel Versions Sep 14, 2020
@Machecek
Copy link

Same here @ Laravel 5.5

@Machecek
Copy link

This is only temporary solution or final one?

@pikachujeff
Copy link

It's happened by this commit #745 . Illuminate\Support\Env the class was added from Laravel 6.0, so in before version it cannot be found.

Laravel 8.0 still keep env() helper function, maybe laravel-localization next fix version make it back is better.

@veneliniliev
Copy link

plase fix this !!!

@karnaukhm
Copy link

we have fixed with just forcing version 1.3 instead of pattern ^1.3 in composer.json for laravel 5.6

@veneliniliev
Copy link

and future updates? :(

@imagina
Copy link

imagina commented Sep 15, 2020

Same issue here!

@oytuntez
Copy link
Contributor

Opened a PR: #750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants