Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a file or directory exists
<?php file_exists(string $filename): bool
<?php     {

        $tmp = __DIR__ . '/_runtime_components.json';



        file_exists($tmp) && unlink($tmp);

    }



    public function setUp(): void
<?php         $this->tweakApplication(function () use ($isUsingAlpineV3) {

            $tmp = __DIR__ . '/_runtime_components.json';

            if (file_exists($tmp)) {


                $components = json_decode(file_get_contents($tmp));
<?php $cacheDir = $root.'/cache';

$cacheDir = $root.'/cache';

$viewsDir = $cacheDir.'/views';

if (! file_exists($cacheDir)) mkdir($cacheDir);

if (! file_exists($viewsDir)) mkdir($viewsDir);

$packagesCache = $cacheDir.'/packages.php';

file_put_contents($packagesCache, '<?php return [];');
<?php $cacheDir = $root.'/cache';

$viewsDir = $cacheDir.'/views';

if (! file_exists($cacheDir)) mkdir($cacheDir);

if (! file_exists($viewsDir)) mkdir($viewsDir);

$packagesCache = $cacheDir.'/packages.php';

file_put_contents($packagesCache, '<?php return [];');

$servicesCache = $cacheDir.'/services.php';
<?php         $tmp = __DIR__ . '/_runtime_components.json';



        if (file_exists($tmp)) {


            [$id, $testClass, $method] = json_decode(file_get_contents($tmp), associative: true);
<?php     {

        $tmp = __DIR__ . '/_runtime_components.json';



        file_exists($tmp) && unlink($tmp);

    }



    function breakIntoATinkerShell($browsers, $e)
<?php         $assetWarning = null;




        if (! file_exists(public_path('vendor/livewire/manifest.json'))) {

            return [$url, $assetWarning];

        }