Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns canonicalized absolute pathname
<?php realpath(string $path): string|false
<?php             (new ExecutableFinder)->find('node'),

            'file-watcher.js',

            json_encode(collect(config('octane.watch'))->map(fn ($path) => base_path($path))),

        ], realpath(__DIR__.'/../../../bin'), null, null, null))->start();

    }
<?php             return base_path('.rr.yaml');

        }



        if ($path && ! realpath($path)) {

            throw new InvalidArgumentException('Unable to locate specified configuration file.');

        }
<?php             throw new InvalidArgumentException('Unable to locate specified configuration file.');

        }



        return realpath($path);

    }
<?php         $server = tap(new Process([

            (new PhpExecutableFinder)->find(), 'swoole-server', $serverStateFile->path(),

        ], realpath(__DIR__.'/../../bin'), [

            'APP_ENV' => app()->environment(),

            'APP_BASE_PATH' => base_path(),

            'LARAVEL_OCTANE' => 1,
<?php         $publicPath = $context->publicPath;



        $pathToFile = realpath($publicPath.'/'.$request->path());



        if ($this->isValidFileWithinSymlink($request, $publicPath, $pathToFile)) {

            $pathToFile = $publicPath.'/'.$request->path();
<?php         $swooleResponse->status(200);

        $swooleResponse->header('Content-Type', MimeType::get(pathinfo($request->path(), PATHINFO_EXTENSION)));

        $swooleResponse->sendfile(realpath($publicPath.'/'.$request->path()));

    }
<?php {

    public function test_it_can_retrieve_base_path_from_environment_variable()

    {

        $basePath = realpath(__DIR__.'/../vendor/orchestra/testbench-core/laravel');



        $process = Process::fromShellCommandline(

            '"'.$this->phpBinary().'" base-path.php', __DIR__, ['APP_BASE_PATH' => $basePath], null, null
<?php         $swooleResponse->shouldReceive('status')->once()->with(200);

        $swooleResponse->shouldReceive('header')->once()->with('Content-Type', 'text/plain');

        $swooleResponse->shouldReceive('sendfile')->once()->with(realpath(__DIR__.'/public/foo.txt'));



        $client->serveStaticFile($request, $context);

    }
<?php     protected function createApplication()

    {

        $factory = new ApplicationFactory(realpath(__DIR__.'/../vendor/orchestra/testbench-core/laravel'));



        $app = $this->appFactory()->createApplication();
<?php     protected function appFactory()

    {

        return new ApplicationFactory(realpath(__DIR__.'/../vendor/orchestra/testbench-core/laravel'));

    }



    protected function config()