function getCertificates($path)
    {
        return collect($this->files->scandir($path))->filter(function ($value, $key) {
            return ends_with($value, '.crt');
        })->map(function ($cert) {
            $certWithoutSuffix = substr($cert, 0, -4);
            return substr($certWithoutSuffix, 0, strrpos($certWithoutSuffix, '.'));
        })->flip();
    }
function getCertificates($path)
    {
        return collect($this->files->scandir($path))->filter(function ($value, $key) {
            return ends_with($value, '.crt');
        })->map(function ($cert) {
            $certWithoutSuffix = substr($cert, 0, -4);
            return substr($certWithoutSuffix, 0, strrpos($certWithoutSuffix, '.'));
        })->flip();
    }
function getCertificates ( $ path ) { return collect ( $ this -> files -> scandir ( $ path ) ) -> filter ( function ( $ value , $ key ) { return ends_with ( $ value , '.crt' ) ; } ) -> map ( function ( $ cert ) { $ certWithoutSuffix = substr ( $ cert , 0 , - 4 ) ; return substr ( $ certWithoutSuffix , 0 , strrpos ( $ certWithoutSuffix , '.' ) ) ; } ) -> flip ( ) ; }
Get all certificates from config folder.

@param string $path
@return \Illuminate\Support\Collection
Get all certificates from config folder .