realpath

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns canonicalized absolute pathname
<?php realpath(string $path): string|false
<?php     'compiled' => env(

        'VIEW_COMPILED_PATH',

        realpath(storage_path('framework/views'))

    ),



];
<?php             return $this->createConnection('sqlite::memory:', $config, $options);

        }



        $path = realpath($config['database']);
<?php                 return $namespace.str_replace(

                    ['/', '.php'],

                    ['\\', ''],

                    Str::after($model->getRealPath(), realpath(app_path()).DIRECTORY_SEPARATOR)

                );

            })->when(! empty($except), function ($models) use ($except) {

                return $models->reject(function ($model) use ($except) {
<?php     {

        $class = $this->getMigrationClass($this->getMigrationName($path));



        if (class_exists($class) && realpath($path) == (new ReflectionClass($class))->getFileName()) {

            return new $class;

        }
<?php         clearstatcache(true, $path);



        $path = realpath($path) ?: $path;



        $tempPath = tempnam(dirname($path), basename($path));
<?php         foreach ((array) data_get($composer, 'autoload.psr-4') as $namespace => $path) {

            foreach ((array) $path as $pathChoice) {

                if (realpath($this->path()) === realpath($this->basePath($pathChoice))) {

                    return $this->namespace = $namespace;

                }

            }
<?php     {

        $files = [];



        $configPath = realpath($app->configPath());



        if (! $configPath) {

            return [];
<?php             $this->app->register(AppRouteServiceProvider::class, force: true);

        });



        if (is_string($commands) && realpath($commands) !== false) {

            $this->withCommands([$commands]);

        }
<?php             $this->withCommands([$commands]);

        }



        if (is_string($channels) && realpath($channels) !== false) {

            $this->withBroadcasting($channels);

        }
<?php         ?callable $then)

    {

        return function () use ($web, $api, $pages, $health, $apiPrefix, $then) {

            if (is_string($api) && realpath($api) !== false) {

                Route::middleware('api')->prefix($apiPrefix)->group($api);

            }
<?php                 });

            }



            if (is_string($web) && realpath($web) !== false) {

                Route::middleware('web')->group($web);

            }
<?php             }



            if (is_string($pages) &&

                realpath($pages) !== false &&

                class_exists(Folio::class)) {

                Folio::route($pages, middleware: $this->pageMiddleware);

            }
<?php         return $namespace.str_replace(

            ['/', '.php'],

            ['\\', ''],

            Str::after($file->getRealPath(), realpath(app_path()).DIRECTORY_SEPARATOR)

        );

    }
<?php         }



        $stubs = [

            realpath(__DIR__.'/../../Translation/lang/en/auth.php') => 'auth.php',

            realpath(__DIR__.'/../../Translation/lang/en/pagination.php') => 'pagination.php',

            realpath(__DIR__.'/../../Translation/lang/en/passwords.php') => 'passwords.php',

            realpath(__DIR__.'/../../Translation/lang/en/validation.php') => 'validation.php',
<?php         $stubs = [

            realpath(__DIR__.'/../../Translation/lang/en/auth.php') => 'auth.php',

            realpath(__DIR__.'/../../Translation/lang/en/pagination.php') => 'pagination.php',

            realpath(__DIR__.'/../../Translation/lang/en/passwords.php') => 'passwords.php',

            realpath(__DIR__.'/../../Translation/lang/en/validation.php') => 'validation.php',

        ];