src/Engine/Helpers/CrudeSpecialFiles.php
private function getFileData($key)
    {
        foreach ($this->getStoredList() as $filePath) {

            $pathinfo = pathinfo($filePath);

            if ($key == $pathinfo['filename'])
                return [
                    'storedPath' => $filePath,
                    'path' => storage_path('app/' . $filePath),
                    'extension' => $pathinfo['extension'],
                    'size' => Storage::size($filePath),
                    'lastModified' => Storage::lastModified($filePath)
                ];
        }

        return false;
    }
private function getFileData($key)
    {
        foreach ($this->getStoredList() as $filePath) {

            $pathinfo = pathinfo($filePath);

            if ($key == $pathinfo['filename'])
                return [
                    'storedPath' => $filePath,
                    'path' => storage_path('app/' . $filePath),
                    'extension' => $pathinfo['extension'],
                    'size' => Storage::size($filePath),
                    'lastModified' => Storage::lastModified($filePath)
                ];
        }

        return false;
    }
private function getFileData ( $ key ) { foreach ( $ this -> getStoredList ( ) as $ filePath ) { $ pathinfo = pathinfo ( $ filePath ) ; if ( $ key == $ pathinfo [ 'filename' ] ) return [ 'storedPath' => $ filePath , 'path' => storage_path ( 'app/' . $ filePath ) , 'extension' => $ pathinfo [ 'extension' ] , 'size' => Storage :: size ( $ filePath ) , 'lastModified' => Storage :: lastModified ( $ filePath ) ] ; } return false ; }
Get file path and extension or null if file is not stored

@param  string $key
@return array|false
Get file path and extension or null if file is not stored