Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bobdebower's avatar

PHP Notice: Undefined variable: __env in. please help!

I'am trying to host my project with ubuntu and i got this error.

PHP Notice: Undefined variable: __env in /var/www/html/config/storage/framework/views/0e20d65b6fa8a4350aa52960af917a7d45b80d6b.php on line 1

<?php $__env->startSection('content'); ?>
      <div class="container">
      <div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card">
            <div class="card-body">
                <?php if(session('status')): ?>
                    <div class="alert alert-success" role="alert">
                        <?php echo e(session('status')); ?>

                    </div>
                <?php endif; ?>

the $__env is giving a error. i don't understand what is going on. already tried php artisan view:clear and php artisan cache:clear dind't help.

0 likes
2 replies
sr57's avatar
sr57
Best Answer
Level 39

What's $__env?

$_ENV? But I don't understand your first line.

bobdebower's avatar

It was in my storage and i delted it for deploy. so it's solved thanks for your reply

Please or to participate in this conversation.