bramcou

bramcou

Member Since 3 Years Ago

Experience Points
4,400
Total
Experience

600 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
37
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
4,400 XP
May
23
5 days ago
Activity icon

Replied to Uncaught ReflectionException: Class Env Does Not Exist In After Upgrading Laravel 5v5.8.33 > V6.18.15

Worked it out with big thanks to the last comment on the following: https://github.com/laravel/framework/issues/26627

I'm not using telescope package, but i've received the same exception on every php artisan call.
I didn't understand what code block crashes.
Over internet there are many resolutions with cache cleaning. Those users received the same message while running phpunit command.
I've tried to run phpunit and received an error related to configuration of one of packages that i've used. So I fixed package config problem and phpunit command runs well. Also, php artisan runs OK for now.
Hope my solution will be useful to someone.

Combined with a post on this issue: https://github.com/laravel/framework/issues/27837

I can successfully upgrade a Laravel 5.7 installation with these Composer files.

Does putting dd($exception); in App\Exceptions\Handler::report() give you a better error message?

Putting that dd($exception) there gave a clear error to be found and fixed which resulted in normal operation.

Hope this might help someone else in the future!

Activity icon

Started a new Conversation Uncaught ReflectionException: Class Env Does Not Exist In After Upgrading Laravel 5v5.8.33 > V6.18.15

Hi all,

I'm having troubling upgrading my Laravel installation from 5.8 to the newest 6.15 (and intending on upgrading to 7.x hereafter).

After running composer update the composer dump autoload runs into trouble and I can't figure out what the problem is. Spent 2 hours on google. Apparently lots of peeps get the same problem only it's usually fixed by clearing cache files that are already cleared at my application, or they relate to telescope, which I don't use nor have installed.

  • I've cleared the bootstrap/cache/ folder. I don't cache the config nor route files.
  • I've followed the upgrade guide from 5.x to 6.0 and double checked but can't find anything I missed.
  • No spaces in my .env file (haven't touched the file in ages)

Running any artisan command just returns the same error:

λ php artisan -v

Fatal error: Uncaught ReflectionException: Class env does not exist in C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
Stack trace:
#0 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(803): ReflectionClass->__construct('env')
#1 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('env')
#2 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('env', Array, true)
#3 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('env', Array)
#4 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('env', Array)
#5 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(1245): Illuminate\Foundation\Application->make('env')
#6 C in C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 805

Below is the cli after all packages had been installed/updated/removed by composer when initially running composer update.

phpoffice/phpspreadsheet suggests installing mpdf/mpdf (Option for rendering PDF with PDF Writer)
phpoffice/phpspreadsheet suggests installing tecnickcom/tcpdf (Option for rendering PDF with PDF Writer)
phpoffice/phpspreadsheet suggests installing jpgraph/jpgraph (Option for rendering charts, or including charts with PDF or HTML Writers)
symfony/polyfill-uuid suggests installing ext-uuid (For best performance)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

Fatal error: Uncaught ReflectionException: Class env does not exist in C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
Stack trace:
#0 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(803): ReflectionClass->__construct('env')
#1 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('env')
#2 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('env', Array, true)
#3 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('env', Array)
#4 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('env', Array)
#5 C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php(1245): Illuminate\Foundation\Application->make('env')
#6 C in C:\Laragon\www\vezc\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 805
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Any help would be greatly appreciated!