PHP 8.3.31
Preview: CompilesIncludes.php Size: 2.38 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php

<?php

namespace Illuminate\View\Compilers\Concerns;

trait CompilesIncludes
{
    /**
     * Compile the each statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileEach($expression)
    {
        return "<?php echo \$__env->renderEach{$expression}; ?>";
    }

    /**
     * Compile the include statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileInclude($expression)
    {
        $expression = $this->stripParentheses($expression);

        return "<?php echo \$__env->make({$expression}, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>";
    }

    /**
     * Compile the include-if statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileIncludeIf($expression)
    {
        $expression = $this->stripParentheses($expression);

        return "<?php if (\$__env->exists({$expression})) echo \$__env->make({$expression}, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>";
    }

    /**
     * Compile the include-when statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileIncludeWhen($expression)
    {
        $expression = $this->stripParentheses($expression);

        return "<?php echo \$__env->renderWhen($expression, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>";
    }

    /**
     * Compile the include-unless statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileIncludeUnless($expression)
    {
        $expression = $this->stripParentheses($expression);

        return "<?php echo \$__env->renderUnless($expression, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>";
    }

    /**
     * Compile the include-first statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    protected function compileIncludeFirst($expression)
    {
        $expression = $this->stripParentheses($expression);

        return "<?php echo \$__env->first({$expression}, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>";
    }
}

Directory Contents

Dirs: 0 × Files: 21

Name Size Perms Modified Actions
2.44 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
446 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
413 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
6.46 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
9.27 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
4.52 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
933 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
729 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.56 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.38 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
505 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
447 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
725 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
3.01 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
4.82 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
620 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1013 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.73 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
443 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.03 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
532 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).