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

            
'file-watcher.js',

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

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

    }
            return base_path('.rr.yaml');

        }



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

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

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

        }



        return 
realpath($path);

    }
        $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,
        $publicPath $context->publicPath;



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



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

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

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

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

    }
{

    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], nullnull
        $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);

    }
    protected function createApplication()

    {

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



        
$app $this->appFactory()->createApplication();
    protected function appFactory()

    {

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

    }



    protected function 
config()