Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Returns information about a file path
<?php pathinfo(string $path, int $flags = PATHINFO_ALL): array|string
<?php     public function name($path)

    {

        return pathinfo($path, PATHINFO_FILENAME);

    }
<?php     public function basename($path)

    {

        return pathinfo($path, PATHINFO_BASENAME);

    }
<?php     public function dirname($path)

    {

        return pathinfo($path, PATHINFO_DIRNAME);

    }
<?php     public function extension($path)

    {

        return pathinfo($path, PATHINFO_EXTENSION);

    }
<?php             ViewFacade::addLocation(sys_get_temp_dir());

        }



        $tempFileInfo = pathinfo(tempnam($tempDirectory, 'laravel-blade'));



        $tempFile = $tempFileInfo['dirname'].'/'.$tempFileInfo['filename'].'.blade.php';
<?php     public function image($name, $width = 10, $height = 10)

    {

        return new File($name, $this->generateImage(

            $width, $height, pathinfo($name, PATHINFO_EXTENSION)

        ));

    }
<?php     public static function from($filename)

    {

        $extension = pathinfo($filename, PATHINFO_EXTENSION);



        return self::get($extension);

    }