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

        $configFullPath = base_path().DIRECTORY_SEPARATOR.'.ignition';



        if (file_exists($configFullPath)) {

            return $configFullPath;

        }
<?php         $configFullPath = Arr::get($_SERVER, 'HOME', '').DIRECTORY_SEPARATOR.'.ignition';



        if (file_exists($configFullPath)) {

            return $configFullPath;

        }
<?php     protected function envFileExists(): bool

    {

        return file_exists(base_path('.env'));

    }



    protected function isAccessDeniedCode($code): bool
<?php     protected function isValetInstalled(): bool

    {

        return file_exists('/usr/local/bin/valet');

    }



    protected function usingCorrectDefaultCredentials(): bool
<?php     public function run(array $parameters = [])

    {

        if (! file_exists(base_path('.env'))) {

            return;

        }
<?php     {

        $autoloaderPath = $autoloaderPath ?? base_path('/vendor/autoload.php');



        if (file_exists($autoloaderPath)) {

            $this->composer = require $autoloaderPath;

        } else {

            $this->composer = new FakeComposer();
<?php         foreach ($prefixes as $namespace => $directories) {

            foreach ($directories as $directory) {

                if (file_exists($directory)) {

                    $files = (new Finder)

                        ->in($directory)

                        ->files()
<?php         foreach ($prefixes as $namespace => $directories) {

            foreach ($directories as $directory) {

                if (file_exists($directory)) {

                    $files = (new Finder)

                        ->in($directory)

                        ->files()