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

<?php

namespace Illuminate\View\Compilers\Concerns;

use Illuminate\Foundation\Vite;

trait CompilesHelpers
{
    /**
     * Compile the CSRF statements into valid PHP.
     *
     * @return string
     */
    protected function compileCsrf()
    {
        return '<?php echo csrf_field(); ?>';
    }

    /**
     * Compile the "dd" statements into valid PHP.
     *
     * @param  string  $arguments
     * @return string
     */
    protected function compileDd($arguments)
    {
        return "<?php dd{$arguments}; ?>";
    }

    /**
     * Compile the "dump" statements into valid PHP.
     *
     * @param  string  $arguments
     * @return string
     */
    protected function compileDump($arguments)
    {
        return "<?php dump{$arguments}; ?>";
    }

    /**
     * Compile the method statements into valid PHP.
     *
     * @param  string  $method
     * @return string
     */
    protected function compileMethod($method)
    {
        return "<?php echo method_field{$method}; ?>";
    }

    /**
     * Compile the "vite" statements into valid PHP.
     *
     * @param  string|null  $arguments
     * @return string
     */
    protected function compileVite($arguments)
    {
        $arguments ??= '()';

        $class = Vite::class;

        return "<?php echo app('$class'){$arguments}; ?>";
    }

    /**
     * Compile the "viteReactRefresh" statements into valid PHP.
     *
     * @return string
     */
    protected function compileViteReactRefresh()
    {
        $class = Vite::class;

        return "<?php echo app('$class')->reactRefresh(); ?>";
    }
}

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).