App\services\Storage::get PHP Method

get() public static method

Read a file and return bin data
public static get ( string $filename ) : string | boolean
$filename string
return string | boolean
    public static function get($filename)
    {
        $result = file_get_contents($filename, 'r');
        if (false === $result) {
            throw new \Exception("Failed to read {$filename}.");
        }
        return $result;
    }